in reply to Problem in perl script for checking exit status of shell script

What value are you receiving inside your perl script? Maybe the following thread is helpful for you: return value from system call, exit status, shift right 8, bitwise and, $?.
  • Comment on Re: Problem in perl script for checking exit status of shell script

Replies are listed 'Best First'.
Re^2: Problem in perl script for checking exit status of shell script
by sarf13 (Beadle) on Feb 08, 2012 at 12:04 UTC

    Thanks for your reply

    its returning 127 inteed of 0, i am trying to narrow down the probelem. well in my shell script i read an external file for reading PATH for required files. while i am reading this external file then the perl script giving the NOT OK satement. another hand if i just hardcoded all the path on shell script itself then perl script giving me OK statement.

    i am just checking its a problem reading external file or someting else.