Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-15-2015, 05:41 PM
ceuso ceuso is offline
Registered User
 
Join Date: Oct 2005
Posts: 5
Scripting with cygwin perl on windows 7

Hi,

I'm trying to run some perl script using cygwin perl instead of activeperl (no, I don't want to install activeperl or any other perl 'flavor').

I did:

d:>ASSOC .pl=PerlScript
d:>FTYPE PerlScript=D:\cygwin64\bin\perl.exe "%1" "%*"
(and d:>FTYPE PerlScript=D:\cygwin64\bin\perl.exe %1 %*, if it matters)

I can run the script from DOS prompt:
d:\scrt\test.pl
with no problem.

But, if I try to run it using cscript or securecrt I get [almost] the same error:

d:>cscript //E:PerlScript d:\scrt\test.pl

CScript Error: Can't find script engine "PerlScript" for script "d:\scrt\test.pl"

D:>SecureCRT.exe /SCRIPT d:\scrt\test.pl blah
"could not locate script engine for language 'PerlScript', error: 0x800401f3"

All system and applications (securecrt, cgwin/perl) are x64. I did try it with both 'normal' and admin users.

Any help?

thanks in advance,
Reply With Quote
  #2  
Old 10-16-2015, 08:16 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi ceuso,

I can't speak to the capabilities of CScript. That is a question for Microsoft.

For SecureCRT to be able to use a scripting language other than the embedded Python, the scripting language must install an Active X scripting engine.

If cygwin doesn't, you won't be able to use the PerlScript included with cygwin with SecureCRT.

My suggestion would be to use a scripting language that installs an Active X scripting engine or use Python. If you don't want to use the embedded Python and you don't want to install a language, you could use VBScript or JScript which are already included in Windows.

It is also important to note that some languages install an Active X scripting engine in their 32-bit versions, but not in their 64-bit versions, so you may need to use the 32-bit version of SecureCRT in some cases.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 02-03-2016, 10:54 PM
waleeed waleeed is offline
Registered User
 
Join Date: Feb 2016
Posts: 1
My suggestion would be to use a scripting language that installs an Active X scripting engine or use Python. If you don't want to use the embedded Python and you don't want to install a language, you could use VBScript or JScript which are already included in Windows.

____________________
waleeed
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:55 AM.