in reply to system() status weirdness

That's because Net::SSH::Expect is installing the following SIGCHLD handler:
sub reapChild { do {} while waitpid(-1,WNOHANG) > 0; }
Doing this will give you your statuses back:
use Net::SSH::Expect; ... $SIG{CHLD} = 'DEFAULT'; ... system(...);
I could be wrong, but I doubt the reapChild handler is absolutely necessary, so you're probably safe just use default handler even when you make Net::SSH::Expect calls.

Replies are listed 'Best First'.
Re^2: system() status weirdness
by monk2b (Pilgrim) on Mar 28, 2008 at 20:13 UTC
    This works great. Thanks alot ++.

    Bob

    I got 99 problems, but a @%$()_ ain't one.