On Sat, Apr 20, 2002 at 08:07:09PM -0400, Paul Lombardo wrote: > > I need to do the following: > > if the perl script fails I need to pass a variable to the batch file so it > can exit with a proper failure message > when the perl script succeeds I need to pass a variable to the batch file > so it can exit with a proper success message. > > I have tried setting ENV{ERRORLEVEL} on failure I have tried exit() and > nothing seems to work.
Nope, that won't work, since the Environment is only passed over to child processes, not parents. Since the NT shell lacks critical features like backquotes, the only thing I see that's left is a kind of status file that you write on error. You can check the existance and content of that file if your script returns an error. -- If we fail, we will lose the war. Michael Lamertz | +49 221 445420 / +49 171 6900 310 Nordstr. 49 | [EMAIL PROTECTED] 50733 Cologne | http://www.lamertz.net Germany | http://www.perl-ronin.de -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]