Help for this page

Select Code to Download


  1. or download this
    ssh user@host "command1;command2"
    
  2. or download this
    open (CHK,"| ssh user@host > /tmp/foo 2>&1") || die "failed";
    print CHK "command1";
    print CHK "command2";
    close CHK;
    # process /tmp/foo here