]> git.rmz.io Git - dotfiles.git/blobdiff - bin/tormon.cron
add tardis bin
[dotfiles.git] / bin / tormon.cron
diff --git a/bin/tormon.cron b/bin/tormon.cron
new file mode 100755 (executable)
index 0000000..816b61b
--- /dev/null
@@ -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