系统启动macOS上的Bash shell脚本
我知道我可以使用像这样的plist系统启动macOS上的Bash shell脚本,bash,macos,daemon,Bash,Macos,Daemon,我知道我可以使用像这样的plist <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>c
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.exampled</string>
<key>LaunchOnlyOnce</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>absolute_path_to_script</string>
</array>
</dict>
</plist>
标签
com.example.exampled
发射台
程序参数
/垃圾箱/垃圾箱
绝对路径到脚本
但它是从shell运行的,而不是bash
我能做什么将
/bin/sh
更改为/bin/bash
谢谢,您真的很有帮助欢迎。如果答案解决了你的问题,请接受。谢谢