in reply to rsh from perl

You might want to give us the code you've tried and in what way it does not work (the error messages if there are some). Without that we can only guess what your problem is.