Skip to content

Show HN: Terminal-based "AppNap" for today

1 pointtjcelayadiscuss
On HN

Pause with: ps -cx | grep -i $1 | awk '{print $1}' | xargs kill -s SIGSTOP

Unpause with: ps -cx | grep -i $1 | awk '{print $1}' | xargs kill -s SIGCONT

[the difference is SIG{STOP,CONT}, also this is for convenience, so I prefer -i ]

Hope this helps someone, as with anything terminal-based: USE WITH CAUTION

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.