How can I use the rsh command in perl?
I need to rsh to a machine, change directory and run a C program there.
I have something like this:
$USER="username";
$MY_DIR="\t\home\"
$MY_SCRIPT="./get_statistics.out"
system "sudo rsh", $USER, "cd", $MY_DIR, "; sudo", $MYSCRIPT;