{"author_name":"shigemk2","categories":["Linux"],"description":"caffeinate -diu -t \u6570\u5b57 \u3092\u52d5\u304b\u3057\u305f\u307e\u307e\u3001\u5225\u30bf\u30d6\u3067\u6b8b\u308a\u6642\u9593\u3092\u78ba\u8a8d \u306a\u3069\u3082\u53ef\u80fd pmset -g assertions | awk ' /^[[:space:]]*pid / { target = /\\(caffeinate\\)/ && /PreventUserIdleSystemSleep/ pid = $2 sub(/\\(.*/, \"\", pid) } target && /Timeout will fire in/ { printf \"PID %s: \u6b8b\u308a %d\u5206%02d\u79d2\\n\", pid, int($5 / 60), $5 % 60 }'","type":"rich","published":"2026-11-22 17:32:47","height":"190","provider_url":"https://hatena.blog","title":"pmset -g assertions","version":"1.0","blog_title":"by shigemk2","image_url":null,"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2026%2F11%2F22%2F173247\" title=\"pmset -g assertions - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://www.shigemk2.com/entry/2026/11/22/173247","blog_url":"https://www.shigemk2.com/","author_url":"https://blog.hatena.ne.jp/shigemk2/","provider_name":"Hatena Blog"}