Solved

Howto automaticall launch Fetchmail on server startup (OSX Server)

Posted on 2009-05-06
2
1,506 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
ID: 24320996
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built ontop of the OSX Server NetBoot system and uses images & workflows as its core assets. Although …
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.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

856 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