my personal dotfiles managed by dotbot, zinit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
500 B

-- log = hs.logger.new('autoscript', 'debug')
--
-- function taskCallback(exitCode, stdOut, stdErr)
-- log.i("task call back ", exitCode, stdOut, stdErr)
-- end
--
-- function runAutoScripts()
-- args = {"-c", "/Users/einverne/Sync/wiki/auto-push.sh"}
-- autoCommitTask = hs.task.new("/bin/bash", taskCallback, args)
-- autoCommitTask:setWorkingDirectory("/Users/einverne/Sync/wiki/")
-- autoCommitTask:start()
-- end
--
-- myTimer = hs.timer.doEvery(7200, runAutoScripts)
-- myTimer:start()