Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在搜索并在启动站点上找到了选项。有没有办法启动.plist机器唤醒?如果这是不可能的,有没有办法在不安装另一个包的情况下运行 shell 脚本而只使用普通 shell?
.plist
起初它在我的 OSX Sierra mac 上不起作用。重新启动我的机器后,plist 配置似乎现在可以工作了。
<key>RunAtLoad</key> <true/>
此键确保您plist在唤醒时运行,如果您想指定它将运行哪个脚本,您可以通过
plist
<dict> <key>PathState</key> <dict> <key>/path/to/your/shell/script.sh</key> <true/> </dict> </dict>