Skip to content

Instantly share code, notes, and snippets.

@gklka

gklka/upload.sh

Created Nov 28, 2015
Embed
What would you like to do?
#!/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
You can’t perform that action at this time.