Skip to content

Instantly share code, notes, and snippets.



Created Sep 15, 2019
What would you like to do?
Caffeinating a process that is already running
bash-3.2$ caffeinate -d $(while true; do if ! kill -0 $PID; then sleep 5; exit; fi; done)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment