in reply to rsh from perl

First of all, capture the status (and error message?) of what you are spawning. Does that give you a hint?

Make sure you aren't being bit by whitespace or by quoting/escaping issues. On the command line, you may need to protect characters like ';' from the shell, but if you're using system with multiple args then that's not needed.