Browse Source

Auto sync torrent to downloader

ubuntu_ci
Ein Verne 4 years ago
parent
commit
4b3d3f8912
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 2
      hammerspoon/autoscript.lua

2
hammerspoon/autoscript.lua

@ -1,6 +1,7 @@
log = hs.logger.new('autoscript', 'debug') log = hs.logger.new('autoscript', 'debug')
local cmdArr = { local cmdArr = {
"cd /Users/einverne/Sync/wiki/ && /bin/bash auto-push.sh", "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) function shell(cmd)
@ -16,6 +17,7 @@ end
function runAutoScripts() function runAutoScripts()
for key, cmd in ipairs(cmdArr) do for key, cmd in ipairs(cmdArr) do
log.i("execute" .. key .. " " .. cmd)
shell(cmd) shell(cmd)
end end
end end

Loading…
Cancel
Save