Jon, Thank you for your reply.
I was actually already using something very similar for external action in order to make use of MKS Tools. Somehow it seemed that using the perl script name in the command line followed by parameters (as Env. Vars) had to work, it made sense, kept everything nicely separated ... and I could not get over it. Anyway that did not work but your suggested solution works; so, I am not going to spend more time on this issue. Thanks again. Mike Bravu. ----Original Message Follows---- From: Jon Grieve <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]> Subject: RE: Witango-Talk: External Action Using Perl Files Date: Tue, 30 Jul 2002 22:09:06 +0100 Mike, Yes, I have a few TAFs (and TCFs) that jump out to external actions that invoke Perl. One example would be the changes I made to the Hangman game, which jumps out to Perl to query the DICT.ORG server to generate random words and look up their descriptions. You can see that here: http://jongrieve.net/toys/hangman Anyway... I use a standard NT/2000 CMD file to execute all External Actions. Here it is in all it's on-line glory: --- START --- @%COMMAND% %PARAMETERS% --- END --- So, I invoke an External action, and pass two environment variables: COMMAND = C:\PERL\BIN\PERL.EXE PARAMETERS = DICT.PL ..... In theory, I could just pass the COMMAND as DICT.PL, because - as you originally said - .PL is associated with ActivePerl, however, I think that some kind of rights issue may come into play, in that the IIS default user may not pick up those associations..? But, that should be enough to get you going... Jon -----Original Message----- From: mike bravu [mailto:[EMAIL PROTECTED]] Sent: 30 July 2002 18:00 To: Multiple recipients of list witango-talk Subject: RE: Witango-Talk: External Action Using Perl Files Jon, Thank you for your response. Is this something that you actually use? I have tried the same thing and I got another Tango Server error: The program "D:\Perl\bin\perl.exe D:\_KA\admin\test2.pl" does not exist, or is not readable. The same string works fine when entered at the command line; or if I change the External Command to invoke a batch file containing this string. Thank you again. Mike Bravu ----Original Message Follows---- From: Jon Grieve <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]> Subject: RE: Witango-Talk: External Action Using Perl Files Date: Tue, 30 Jul 2002 15:12:26 +0100 Mike, In external actions, I just invoke the Perl interpreter also, something like: c:\perl\bin\perl.exe c:\myscrip.pl Jon -----Original Message----- From: mike bravu [mailto:[EMAIL PROTECTED]] Sent: 30 July 2002 3:10 To: Multiple recipients of list witango-talk Subject: Witango-Talk: External Action Using Perl Files Hello all, Does anybody know how to invoke external action when the executable is a Perl file and/or has such an example or documentation? All I get is this Tango Server error: Unable to execute command line external action: D:\_KA\admin\myFile.pl %1 is not a valid Win32 application. - I use Windows 2000, Tango 2000, ActiveState Perl latest version; - Extension .pl is associate with perl.exe and the perl executable works fine from the command line. The command is: "D:\apps\myFile.pl"' - Using a .bat file works OK; also executing a perl file from within a .bat file works. Many thanks, Mike Bravu. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
