in reply to Persistent SSH Terminal from Perl?
If you want to use perl and you can setup ssh keys so you don't have to enter a password, you could usessh user@host "command1;command2"
open (CHK,"| ssh user@host > /tmp/foo 2>&1") || die "failed"; print CHK "command1"; print CHK "command2"; close CHK; # process /tmp/foo here
|
|---|