I am trying to make a system call and capture the return
status of the process that completed from the system call.
Problem is that everything is reporting -1 as the return status.
I executed the command line from csh and checked the status
with "echo $status" and it returns 0.
Below is a little test script::
#! /home/gmccone/local/bin/perl
#-dtkdb
$e = "sleep 5";
$r = system( $e );
print "Return status: $r $?\n";
Script output::
Return status: -1 -1
So why isn't the return the 0 that I expect and get from
the command line execution??
Thanks for the help
status of the process that completed from the system call.
Problem is that everything is reporting -1 as the return status.
I executed the command line from csh and checked the status
with "echo $status" and it returns 0.
Below is a little test script::
#! /home/gmccone/local/bin/perl
#-dtkdb
$e = "sleep 5";
$r = system( $e );
print "Return status: $r $?\n";
Script output::
Return status: -1 -1
So why isn't the return the 0 that I expect and get from
the command line execution??
Thanks for the help