Skip to content

Instantly share code, notes, and snippets.

@gklka
Created November 28, 2015 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gklka/9fdf4c859e065a04663f to your computer and use it in GitHub Desktop.
Save gklka/9fdf4c859e065a04663f to your computer and use it in GitHub Desktop.
#!/bin/bash
for f
do
scp -P PORTOD $f USERED@HOSTOD:/mnt/disk2/Plex/Download/
if [ $? -eq 0 ]
then
mv $1 ~/.Trash/
/usr/local/bin/terminal-notifier -message "$f" -title "Successful upload" -open "http://TRANSMISSION-OD-URL-JE"
else
/usr/local/bin/terminal-notifier -message "$f" -title "Error at uploading"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment