Help for this page
system("/usr/bin/rsh $proc $cmd"); exit(0);
exec("/usr/bin/rsh $proc $cmd"); exit(0); # In case exec fails.