我有一个应该运行shell脚本的plist,shell脚本已经chmod +x /path/to/myscript
,我检查它运行正常。以下是我的帖子:
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.system.osx</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Users/myuser/Library/.system/connect.sh</string>
</array>
<key>KeepAlive</key>
<true/>
<key>ResetAtClose</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>60</integer>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>
已加载plist,并且一个名为LaunchControl的调试启动程序告诉我它会抛出错误127.
请帮忙!