As a continuation from my initial question...
Routinely backup log file in OSX?
I'm attempting to backup a logfile on an OSX computer and a jailbroken iPhone. LaunchD was recommended as a solution and some Google searches later revealed LingOn to be the tool to use.
The output (after me filling the fields) gives me this PList:
<?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.ash.MySuperLaunchd</string>
<key>ProgramArguments</key>
<array>
<string>python</string>
<string>/Users/ash/Desktop/sendemail.py</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
</dict>
</plist>
Now running my python script by invoking it in the terminal will successfully send the email to my inbox with the attachments I need.
LaunchD just doesn't launch though and I'm not sure why.
sudo launchctl load w- com.ash.MySuperLaunchd
which python
and execute it directly to circumvent PATH issues. Lastly, check/Applications/Utilities/Console.app
for error messages.