RE: perl script calls batch file

2006-08-06 Thread Shourya Sengupta
From: Todd W [mailto:[EMAIL PROTECTED] Sent: Sunday, August 06, 2006 8:27 AM To: beginners@perl.org Subject: Re: perl script calls batch file ""Dr.Ruud"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shourya Sengupta [EMAIL PROTECTED] schreef: &g

Re: perl script calls batch file

2006-08-05 Thread Todd W
""Dr.Ruud"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shourya Sengupta [EMAIL PROTECTED] schreef: >> Ruud: >>> Shourya: > My perl program calls a batch file on a remote machine. Now my question is how to return a value from that batch script and how to grab it i

Re: perl script calls batch file

2006-08-04 Thread Dr.Ruud
Shourya Sengupta schreef: > Ruud: >> Shourya: >>> My perl program calls a batch file on a remote machine. >>> Now my question is how to return a value from that batch script and >>> how to grab it in the perl file? >> >> What kind of value? > > It's the value of a variable generated in the batch s

RE: perl script calls batch file

2006-08-04 Thread Shourya Sengupta
It's the value of a variable generated in the batch script. By the way does batch script have any kind of return statement? -Original Message- From: Dr.Ruud [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 4:44 PM To: beginners@perl.org Subject: Re: perl script calls batch

Re: perl script calls batch file

2006-08-04 Thread Dr.Ruud
"Shourya Sengupta" schreef: > My perl program calls a batch file on a remote machine. > Now my question is how to return a value from that batch script and > how to grab it in the perl file? What kind of value? [Signature separator missing. Get rid of any garbage tail, such as Disclaimers, befo

RE: perl script calls batch file

2006-08-03 Thread Timothy Johnson
Your best bet here might be to use the %ERRORLEVEL% variable in your batch script and then print it to the screen with an easily identifiable tag (E.g. 'ERRORLEVEL=x'). Your perl script can just look for your status messages and pull them out with a regex: my $result; foreach my $output( @

Re: perl script calls batch file

2006-08-03 Thread Ken Foskey
On Thu, 2006-08-03 at 23:45 +0530, Shourya Sengupta wrote: > Hi, > My perl program calls a batch file on a remote machine. > Now my question is how to return a value from that batch script and how > to grab it in the perl file? using ssh to the remote machine, then you can check the return code of

RE: perl script calls batch file

2006-08-03 Thread Shourya Sengupta
, 2006 11:56 PM To: Shourya Sengupta; beginners@perl.org Subject: RE: perl script calls batch file -Original Message- From: Shourya Sengupta [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 2:15 PM To: beginners@perl.org Subject: perl script calls batch file Hi, My perl program

RE: perl script calls batch file

2006-08-03 Thread Smith, Derek
-Original Message- From: Shourya Sengupta [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 2:15 PM To: beginners@perl.org Subject: perl script calls batch file Hi, My perl program calls a batch file on a remote machine. Now my question is how to return a value from that batch s