in reply to External command execution - Strange Error - No child process

Sorry for not explaining it properly.

When I meant, i checked the return/exit status. I checked the $? and found it as -1. If it is -1, we are supposed to check the $! which has the string - explanation of the error.

The tar command I used is very simple, `tar -cf logs.tar logout.txt logerr.txt`

Thanks for your reply.. Kindly help me in figuring out the issue.

Replies are listed 'Best First'.
Re^2: External command execution - Strange Error - No child process
by zentara (Cardinal) on Jul 25, 2011 at 17:02 UTC
Re^2: External command execution - Strange Error - No child process
by cdarke (Prior) on Jul 26, 2011 at 08:43 UTC
    Presumably you shifted $? to get the exit code: $? >> 8 as documented in perlvar?