SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Run Program with arguments

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Run Program with arguments
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Run Program with arguments Reply with quote

I am trying to run a PERL script using the following commands :

Command Line : perl script.pl 1>script.log 2>script.err

Start in : c:\script

Running the above command via a DOS prompt gives me the correct STDOUT and STDERR output, and running the above via 24x7 WITHOUT the additional arguments works as well..

is there some series of quotes, etc I need to use to have the above command line run as is ?

It also seems to fail when run via RUNANDWAIT via JAL script as well..

Mon May 22, 2006 10:53 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Run Program with arguments Reply with quote

You should use cmd /C in front of it. The redirection is a function of shell that's why it works in DOS

cmd /C perl script.pl 1>script.log 2>script.err

: I am trying to run a PERL script using the following commands : Command Line
: : perl script.pl 1>script.log 2>script.err

: Start in : c:\script

: Running the above command via a DOS prompt gives me the correct STDOUT and
: STDERR output, and running the above via 24x7 WITHOUT the additional
: arguments works as well..

: is there some series of quotes, etc I need to use to have the above command
: line run as is ?

: It also seems to fail when run via RUNANDWAIT via JAL script as well..

Mon May 22, 2006 11:15 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.