daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest May 23rd, 2016 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #!/bin/bash
  3. login="user"
  4. pass="password"
  5. host="remote.host"
  6.  
  7.     cd $2
  8.  
  9.     lftp -p 22 -u "$login","$pass" sftp://"$host" << EOF
  10.     set sftp:auto-confirm yes
  11.     set xfer:use-temp-file yes
  12.     set xfer:temp-file-name .in.*
  13.     pget -c -n 5 "$1"
  14.     quit
  15. EOF
  16.     exit
  17. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'AUTUMN SPECIAL'!
Get 60% OFF Pastebin PRO accounts!
 
Top