通过launchd执行脚本并记录stdout、stderr
项目描述
安装
$ [sudo] pip install launchd-exec
$ [sudo] npm i -g launchd-exec
示例
$ launchd-exec bash -l path/to/script.sh
launchd-exec.<hash> # label
$ pid="$(/bin/launchctl list | grep "$label" | awk '{print $1}')"
日志
~/Library/Logs/launchd-exec/<hash>/out.log
~/Library/Logs/launchd-exec/<hash>/err.log
~/Library/Logs/launchd-exec/<hash>/launchd.plist
项目详情
关闭
launchd-exec-2020.12.3.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b08f546ed0cd7a7381296bd740866be808e1e54f795c84e2b05af46a7a32814d |
|
MD5 | ae641bfe40c2a207e979f964852c1028 |
|
BLAKE2b-256 | 4577d92f4df1b638417e0aa9414f91292d7f654f21aa3892d8fec432104fbfb5 |