Skip to content

Instantly share code, notes, and snippets.

@dewey
Created November 6, 2014 23:07
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 dewey/214b9ec50c71223da356 to your computer and use it in GitHub Desktop.
Save dewey/214b9ec50c71223da356 to your computer and use it in GitHub Desktop.
SCP Torrent from directory containing a bunch of torrents to watch directory every 5 seconds and then delete it.
for f in torrents/*; do scp "$f" torrent@example.com:~/rtorrent/watch/watchWHAT/ && rm "$f" ; sleep 5; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment