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
""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
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
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
"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
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( @
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
, 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
-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