Skip to content

Instantly share code, notes, and snippets.

@natanlao natanlao/caffeine.md
Created Sep 15, 2019

Embed
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
You can’t perform that action at this time.