Edited by tom_corner on 11/17/04 07:02 AM (server time).
hi,I tried your solution, but didn't work. I always get a '0'.here is my code: my $dep_command = "$od_home/bin/iwodstart $temp_dep_config_file"; my $rc = `$dep_command 2>&1`; $rc = $? >> 8; # Divide by 256 to get the real return codeI always get 0 for the variable $rc.Any help is appreciated!Anna Dalas.
...my $dep_command = "$od_home/bin/iwodcmd start $temp_dep_config_file";my $results = qx($dep_command 2>&1);my $status = $?;if ($status){ $status >>= 8 if ($status > 250); # remove shell padding of exit status code # do whatever else you want here, now that we know there's been # an "error" of some sort. # $results contains the information that was sent to STDOUT/STDERR}