Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- inotifywait -m /home/user/Downloads/torrent -e create -e moved_to |
- while read dir action file; do`
- if [[ "$file" =~ .*torrent$ ]]; then`
- echo "Found" &&
- cp /home/user/Downloads/torrent/"$file" \
- run/user/1000/gvfs/smbshare\:server\=fooo\,share\=smbserver/transmission/torrent/"$file" &&
- rm /home/user/Downloads/torrent/"$file";
- fi
- done
Add Comment
Please, Sign In to add comment