Hi Everyone. I've been reading the list for the past few days now and I have something maybe worth asking. What I am wondering about at the moment is how to get a possible error message from a command that is run in the shell. i.e.
my $cmd = "sudo -u userlogin " . "/usr/bin/ssh -l $cnrip_user ${$ip_ref}[0] " . "'/opt/nwreg2/usrbin/nrcmd -r -N $cnr_user " . "-P $cnr_pass client list '"; @results = `$cmd`; So it's basically a big clunky command and I know I should probably split it into individual ones with their own error handling... But for now I'd like to be able to grab an error if possible. The error I'm getting is from ssh not having the proper keys for a host. There's about half a screen worth of stuff displayed with it. (This is what I see when I do the commands manually from the shell.) Any ideas? Regards. ~Frank ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>