#block #process #amount #system #exit #sleeping #time

app block-sleep

阻止系统休眠一定时间,或直到某个进程退出

2 个不稳定版本

0.2.0 2024年7月25日
0.1.0 2024年7月25日

#969命令行工具

Download history 240/week @ 2024-07-21 41/week @ 2024-07-28 2/week @ 2024-08-04

每月 283 次下载

MIT 许可证

16KB
312

block-sleep

Block your system from sleeping for an amount of time, or until a certain process exits

Usage: block-sleep [OPTIONS]

Options:
  -p, --pid <PID>       The process id to wait on. Sleep will be blocked until this process exits
  -f, --first <PID>...  Block sleep until the first process in the group has exited
  -a, --all <PID>...    Block sleep until all the given processes in the group have exited
  -t, --time <TIME>     The amount of time to block sleep for in seconds
  -h, --help            Print help
  -V, --version         Print version

依赖

~10–39MB
~626K SLoC