From 4b3d3f89124d383a526a9b6993fce88d2c07ef49 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Fri, 4 Sep 2020 13:35:51 +0800 Subject: [PATCH] Auto sync torrent to downloader --- hammerspoon/autoscript.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hammerspoon/autoscript.lua b/hammerspoon/autoscript.lua index 6db4fcb..d8deb2a 100644 --- a/hammerspoon/autoscript.lua +++ b/hammerspoon/autoscript.lua @@ -1,6 +1,7 @@ log = hs.logger.new('autoscript', 'debug') local cmdArr = { "cd /Users/einverne/Sync/wiki/ && /bin/bash auto-push.sh", + "/usr/bin/rsync --remove-source-files -azvh ~/Downloads/*.torrent omv_proxy:/sharedfolders/pt/watch/ >> /tmp/rsync-bittorrent.log", } function shell(cmd) @@ -16,6 +17,7 @@ end function runAutoScripts() for key, cmd in ipairs(cmdArr) do + log.i("execute" .. key .. " " .. cmd) shell(cmd) end end