-1

I know that I can use plist like this one

<!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>

But it runs from shell, not bash What can I do

Mark Setchell
  • 169,892
  • 24
  • 238
  • 370

1 Answers1

0

Change the <string>/bin/sh</string> to <string>/bin/bash</string>.

j23
  • 2,694
  • 1
  • 5
  • 13