Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Terminal-based "AppNap" for today
1 point by tjcelaya on June 13, 2013 | hide | past | favorite
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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: