in reply to Capture return value from a cmd when it errors

sravs448:

Are you sure you're not getting the exit status? The value you show (13312) translates to 0x34 after you shift it right by 8 bits, which looks like a reasonable return value. However, I don't know what value you expected to see there. (You need to shift it right 8 bits to get the actual returned value, as mentioned in perldoc perlvar)

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Capture return value from a cmd when it errors
by sravs448 (Acolyte) on Aug 05, 2014 at 13:45 UTC
    I am looking for return message not the code .sory if i am not clear in my question.