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).
In reply to Re: invoking rsh and testing for success/failure
by ikegami
in thread invoking rsh and testing for success/failure
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |