Home  |  Linux  | Mysql  | PHP  | XML
From:Raymond Wan Date:Tue Jun 30 09:03:16 2009
Subject:Re: exit status

Hi Irfan,


Irfan Sayed wrote:
> I have one windows batch script in which i am calling one perl script. now what i want to do is if the exit status of that perl script is non zero then batch script should not continue executing further and if the exit status is zero then only it shud further execute.
>
> normally we use the value of $? to know the exit status of any system call but in this case how shud i inform to windows batch script that the perl script execution / exit status is non zero and stop execution further

What you seem to be asking for seems to be about the Windows batch
script and not Perl... I don't recall how Windows batch files check
the exit status of another program -- on the Perl side, just use exit
with a non-zero value.

Ray

Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Using MQSeries module with Perl on Windows
Re: Perl script to monitor memory usage on unix box
Re: Perl script to monitor memory usage on unix box
Re: sequential value check
Redirecting STDOUT and STDERR for system()



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants