Skip to content

Instantly share code, notes, and snippets.

@9had
Created July 13, 2019 20:09
Show Gist options
  • Save 9had/2973dd1dddd14685928c077669dbbdb4 to your computer and use it in GitHub Desktop.
Save 9had/2973dd1dddd14685928c077669dbbdb4 to your computer and use it in GitHub Desktop.
Launchd job
<?xml version="1.0" encoding="UTF-8"?>
<!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.nihad.test_copy</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/user1/copy.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>08</integer>
</dict>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/Users/user1/copy.err</string>
<key>StandardOutPath</key>
<string>/Users/user1/copy.out</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment