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 -->
  #3 (permalink)  
Old 02-13-2008
mercuryshipzz mercuryshipzz is offline
Registered User
 

Join Date: Dec 2007
Posts: 16
Thanks a lot Lakris...

Code:
#!/bin/sh
scp script.pl user@remote:remote path
result=$(ssh user@remote script.pl)
echo $result
ssh user@remote rm script.pl
i jus swapped the last 2 lines of ur script, cuz it deletes the file before it gets executed.

thanks.
Reply With Quote