HiTek Software Home
 

|  Home

Products |  Downloads |  Purchase Support

 

Automation software
Automize
- Automation Software

 
ftp download
AbleFtp
- Automated FTP Client
 
secure ftp
JaSFtp
- Automated Secure FTP Client
 
data encryption software, file encryption software
Autokrypt
- Automated Encryption Software

 

Title How to run Perl Scripts
Date Updated 1/16/2007
Versions affected 4.0 and later
OS affected Not a bug
Description User can run a perl script correctly by clicking on it or from command-line.  But cannot run the same script from Automize.
Causes Perl is registered on your system. Hence you can manually launch the perl script, since your system associates .pl files with the perl.exe executable, and requests it to run your .pl script.  However, Automize cannot associated .pl with the perl.exe.  You have to format the commandline so that it launches perl.exe first.
Solution In Automize, for the commandTask or the WinCommand task, the commandLine should start with the perl executable. Please find the location of your perl executable, then:
for the commandline, use:
c:\...\perl_folder\perl.exe
"c:\...\perl_script_folder\adsendcleanup.pl"
for the working dir, use:
c:\....\perl_script_folder

Or, in the Open Documents task, enter the full path to the perl script:
c:\...\perl_script_folder\adsendcleanup.pl

The CommandTask gives the most feedback , if your script writes to system.out or system.err.
The WinCommandTask works best with batch files on windows.
Open Documents task, is supposed to open a file just like you would manually by clicking on it.  Open document task does not provide feedback and is generally not useful in a chain
Output Log Windows Command Task
Windows Command - evolve
|
WinCommand.exe Running
CommandLine = D:\Predator\Rel.2_3\bin\ntdbevolve.pl
Working Dir = D:\Predator\Rel.2_3\bin
Error:: Failed to start process
Windows Command - evolve - Exit Code = 1

Command Task
Command - pas
CreateProcess: D:\Predator\Rel.2_3\bin\ntdbevolve.pl error=193
Command - pas - Exit Code = 101

Debug Log

-