in reply to knowing if process dies.
print "XDB19\n"; exit( 3 );
Well, thats it. I cant vote yet Tye, but you should be voted up for your reply. It led me to this code. I hope this helps.open( LOG, "perl ex.pl|" ); # open the program while ( <LOG> ) { print "$_"; } # print output from prog close( LOG ); # wont work without close $errcode = ( $? / 256 ); # there is a number stored # in the $? variable, and # it happens to be the exit # code * 256 ...so divide, # and conquer print "***$errcode***\n"; #print it ( stands out doesnt it )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: knowing if process dies.
by merlyn (Sage) on Aug 24, 2000 at 18:54 UTC |