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/Fetchmai l_runner</ string>
<key>ProgramArguments</key >
<array>
<string>/etc/mail/Fetchmai l_runner</ string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
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/Fetchmai
<key>ProgramArguments</key
<array>
<string>/etc/mail/Fetchmai
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.