VisualCron
»
Support
»
API
»
Error Executing perl script
 Rank: Member
Joined: 5/24/2011(UTC) Posts: 15 Location: Lansing, MI
|
I set up a pretty straight foward command task that calls a perl script like this:
Command: perl c:\localfolder\script.pl
The perl script loops simply iterates through 24 xml files outputs new formated xml files using 11 different xsl files. So this process should 264 new xml files.
About midway through the 7th file, I get an "Error in Argument" error message and the process stops and there are only about 80 files in the output folder.
If I run the exact same command perl (perl c:\localfolder\script.pl) from a command window, the process completes fully producing all 264 xml files.
This is a process that has been running for a year with no problem using windows task scheduler, that we are trying to move into visualCron. It is the first job we are moving from a windows task to visualcron so not having it work right off is a big concern.
Mike
|
|
|
|
|
|
 Rank: Administration
Joined: 2/23/2008(UTC) Posts: 6,120  Location: Sweden Thanks: 198 times Was thanked: 117 time(s) in 112 post(s)
|
Try using full path to perl.exe in command and full path to your script in argument. |
|
|
|
|
|
|
 Rank: Member
Joined: 5/24/2011(UTC) Posts: 15 Location: Lansing, MI
|
Using the full path makes no difference, I've tried both ways (both in the command window and visualcron).
|
|
|
|
|
|
 Rank: Administration
Joined: 2/23/2008(UTC) Posts: 6,120  Location: Sweden Thanks: 198 times Was thanked: 117 time(s) in 112 post(s)
|
Sorry, I read a little bit fast.
I guess that the perl script raises an error which your normal cmd.exe does not capture.
We could test it here if you send us all the files.
Which version are you using now? |
|
|
|
|
|
|
 Rank: Member
Joined: 5/24/2011(UTC) Posts: 15 Location: Lansing, MI
|
For security purposes, I can't send you the script and xml files. I thought about an error not being captured when processing in command window (although I see no evidence of this when I run it and look over the output).
So I:
1) Changed the script to only process the first 12 xml files. run task in VC. same error.
2) Then I looked to see how far along it had processed. removed the 7 already processed okay files from folder. run task in VC. Remaining 5 files processed with no errors.
I guess next I'll try and process each file one at a time and see if I can get an error.
It seems to me that if I can run a script from a command window, then I should see no difference running a command task in VS.
|
|
|
|
|
|
 Rank: Administration
Joined: 2/23/2008(UTC) Posts: 6,120  Location: Sweden Thanks: 198 times Was thanked: 117 time(s) in 112 post(s)
|
I agree. At the same time there could be many, almost invisible, differences. Please get back to us when you have tested. |
|
|
|
|
|
|
| Users browsing this topic |
|
Guest
|
VisualCron
»
Support
»
API
»
Error Executing perl script
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.