3 ms·
Um so it is sudo bash -c 'touch KEEP_RUNNING; pmset -b sleep 0; pmset -b disablesleep 1; while [ -e KEEP_RUNNING ]; do sleep 1; done; pmset -b sleep 5; pms
by xlii 4mo ago
Um so it is
sudo bash -c 'touch KEEP_RUNNING; pmset -b sleep 0; pmset -b disablesleep 1; while [ -e KEEP_RUNNING ]; do sleep 1; done; pmset -b sleep 5; pmset -b disablesleep 0'
and
Agent, when you're done do `rm KEEP_RUNNING`, kthxbye.
?
(personally I have Ruby scripts that check activity on "tmux capture-output" for that)
- fragmede 4mo agohttps://news.ycombinator.com/item?id=9224 https://news.ycombinator.com/item?id=9224
- da_grift_shift 4mo agoYeah, I'll stick with the oneliner. https://ghloc.vercel.app/kageroumado/adrafinil?branch=main https://ghloc.vercel.app/kageroumado/adrafinil?branch=main