From 6ee0f4e5a3d2e9bdfc0e6ff93e31efafa0a76340 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Sat, 23 Sep 2023 11:36:18 -0400 Subject: [PATCH] caffeinate: add `-w` flag example (#10749) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/osx/caffeinate.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/osx/caffeinate.md b/pages/osx/caffeinate.md index c7fcd8b85..169e7fe6d 100644 --- a/pages/osx/caffeinate.md +++ b/pages/osx/caffeinate.md @@ -11,6 +11,10 @@ `caffeinate -s "{{command}}"` +- Prevent from sleeping until a process with the specified PID completes: + +`caffeinate -w {{pid}}` + - Prevent from sleeping (use `Ctrl + C` to exit): `caffeinate -i`