Sixem

Bash Upload Area SFTP

Nov 8th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. ext='.png'
  2. site='http://domain.com/i/'
  3. pass='candy123'
  4. filename=$(date +%s)$ext
  5. temp='/home/user/Pictures/'
  6. scrot -s $temp$filename
  7. sshpass -p $pass scp $temp$filename user@domain.com:/var/www/i
  8. rm -r $temp$filename
  9. echo -n $site$filename | xclip -selection c
Advertisement
Add Comment
Please, Sign In to add comment