Hi,
I am using ftp to sync an ftp server with a local folder. I have a shell script I am able to execute using the terminal. I am using Lingon to add a plist to the lauchd program so that the shell script runs hourly. The shell script ususes lftp to sync. But when launchd tries to execute the script I get an error from lftp "lftp: command not found". What am I missing? thanks
Below is the plist I am using:
I am using ftp to sync an ftp server with a local folder. I have a shell script I am able to execute using the terminal. I am using Lingon to add a plist to the lauchd program so that the shell script runs hourly. The shell script ususes lftp to sync. But when launchd tries to execute the script I get an error from lftp "lftp: command not found". What am I missing? thanks
Below is the plist I am using:
Code:
<?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>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>Torrent Sync</string>
<key>Program</key>
<string>lftp</string>
<key>ProgramArguments</key>
<array>
<string>/Users/harounsharif/Desktop/Downloads/synctorrents.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>60</integer>
<key>WorkingDirectory</key>
<string>/Users/harounsharif/Desktop/Downloads</string>
</dict>
</plist>