in reply to Running Applications on a Remote Host
You could always go a different route and use Expect.
nodes to look into:
How to split output using Expect.pm and Seeking Help w/ Expect.pm... found here.
As for rsh, the NetBSD man page had some examples and a quite long man/help page here
-p
|
---|
In Section
Seekers of Perl Wisdom