Link to home
Start Free TrialLog in
Avatar of Tim_Beck
Tim_Beck

asked on

Howto automaticall launch Fetchmail on server startup (OSX Server)

I have created a plist file to automatically launch fetchmail on serverstart.
But when trying to run the fetchmail.plist file I get the following error:

./fetchmail.plist: line 1: syntax error near unexpected token `newline'
./fetchmail.plist: line 1: `<?xml version="1.0" encoding="UTF-8"?>'



Her you can find my fetchmail.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
   <key>Label</key>
   <string>fetchmail</string>
   <key>Program</key>
   <string>/etc/mail/Fetchmail_runner</string>
   <key>ProgramArguments</key>
   <array>
     <string>/etc/mail/Fetchmail_runner</string>
   </array>
   <key>RunAtLoad</key>
   <true/>
 </dict>
 </plist>

ASKER CERTIFIED SOLUTION
Avatar of Irwin W.
Irwin W.
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial