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 script.
That still doesn't say much. If it's an integer between 0-255, you could use ERRORLEVEL. Otherwise you might even need a file, but there are ways in between. > By the way does batch script have any kind of return statement? Only ERRORLEVEL. (AFAIK 0-255) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>