Re: exit status
- From: xhoster@xxxxxxxxx
- Date: 31 Mar 2006 19:07:17 GMT
"Jerry Adair" <jerry.adair@xxxxxxx> wrote:
Paul-
Not sure why I am getting the flack from you, but whatever.
His flack was self-documenting. And now we can odd top-posting to
the flack.
Anyway, I have read the documentation and know about the return value
from wait, etc. To answer the other questions I have been asked, I am
using system() calls to invoke the script.
inside script "1":
my $exitStatus = system( "<call to script #2>" );
print( STDOUT "exit=$exitStatus\n" );
inside script "2": (similar code)
my $return = system( "<call to a program>" );
print( STDOUT "return=$return\n" );
exit( $return >> 8 );
And the output from script "2" gives the number 2,
That is strange. The output of script 2 should give a zero, or a number
greater than 255. But anyway, if it actually is 2, then 2>>8 is zero, so
script 2 itself is exiting with zero. That would certainly explain the
result, no?
I hope this helps. Any more flack and I think I'll punt and seek help
elsewhere.
No skin off of my nose, certainly.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- exit status
- From: Jerry Adair
- Re: exit status
- From: Paul Lalli
- Re: exit status
- From: Jerry Adair
- exit status
- Prev by Date: Re: substition in perl
- Next by Date: Re: Converting codepages to UTF8
- Previous by thread: Re: exit status
- Next by thread: Re: exit status
- Index(es):
Relevant Pages
|