SHARE
TWEET
Untitled
a guest
May 23rd, 2016
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #!/bin/bash
- login="user"
- pass="password"
- host="remote.host"
- cd $2
- lftp -p 22 -u "$login","$pass" sftp://"$host" << EOF
- set sftp:auto-confirm yes
- set xfer:use-temp-file yes
- set xfer:temp-file-name .in.*
- pget -c -n 5 "$1"
- quit
- EOF
- exit
- 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.

