-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
  • 191,897
  • 31
  • 273
  • 432

1 Answers1

0

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

j23
  • 3,139
  • 1
  • 6
  • 13