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
RE: [PHP-DB] PHP-Extension for Cego database
namespace keyword
Re: [PHP-INSTALL] Browser tries to download php file
Re: [PHP-WIN] Can i run php script using command prompt in any location by typing scriptname.php
content type headers


  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants