X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4b06eb26103a8f0840915532fdf411ef82e9ad24..89cf694280e02442fb435d5fe516ac09783d776a:/bin/tormon.cron diff --git a/bin/tormon.cron b/bin/tormon.cron new file mode 100755 index 0000000..816b61b --- /dev/null +++ b/bin/tormon.cron @@ -0,0 +1,15 @@ +#!/bin/bash + +PATH=~/bin:$PATH +DIR=/mnt/Skaro/Torrents/rss +TORRENTS=$DIR/torrents +TORRENTS_DONE=$TORRENTS.done +LOG=$DIR/downloadedTorrents +RSS=$DIR/rss_list + +tormon -O $TORRENTS -d $LOG -b $RSS + +sleep 60 +if [ "$(ls -A $TORRENTS)" ]; then + mv $TORRENTS/* $TORRENTS_DONE +fi