Solved

Howto automaticall launch Fetchmail on server startup (OSX Server)

Posted on 2009-05-06
2
1,495 Views
Last Modified: 2013-12-21
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>

0
Comment
Question by:Tim_Beck
2 Comments
 
LVL 32

Accepted Solution

by:
nappy_d earned 500 total points
Comment Utility
Have you tried creating a cron job to run as the root user? This way, you do not have to log in for the task to be run.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now