Solved

Howto automaticall launch Fetchmail on server startup (OSX Server)

Posted on 2009-05-06
2
1,512 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
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.

632 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