The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-13-2008
Lakris Lakris is offline
Registered User
 

Join Date: Oct 2007
Posts: 103
Instead of using cat and piping, couldn't You just do something like:
Code:
#!/bin/sh
scp script.pl user@remote:
result=$(ssh user@remote script.pl)
ssh user@remote rm script.pl
echo $result
Reply With Quote