$string = "This is my string"; my $output = `rsh -l remoteuser host.example.com "perlprog.pl \"$string\""`;