in reply to invoking rsh and testing for success/failure
if (`rsh ...` =~ /No match/) { die("File not found.\n"); }
`` returns the STDOUT of the command as a string instead of displaying it. If you need both STDOUT and STDERR, redirect STDERR to STDOUT (by addiging "2>&1" to the command).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: invoking rsh and testing for success/failure
by Anonymous Monk on Apr 01, 2005 at 17:21 UTC |