启动代理错误代码127

时间:2015-06-27 02:32:15

标签: macos bash shell launchd launch-agent

我有一个应该运行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. enter image description here

请帮忙!

0 个答案:

没有答案