LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2003, 10:59 AM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Wierd cron problem


Hi there,

I set up cron fine, and added the following to my user's crontab (cheers to acid_kewpie for telling me about it):

*/5 * * * * getmail

This worked fine, no problems.

I then added another user, and repeated this.

With this user, cron e-mails a sort of debug report for every-time it runs. It looks like:

Code:
getmail - POP3 mail retriever with reliable Maildir and command delivery.

getmail version 3.1.3 

Copyright (C) 2001 Charles Cazabon

Licensed under the GNU General Public License version 2.  See the file
COPYING for details.

Written by Charles Cazabon <getmail @ discworld.dyndns.org>
getmail started for *************@mail.x9internet.co.uk:110
  POP3 greeting:  +OK <92196.1054306050@server15.donhost.co.uk>
  POP3 user response:  +OK 
  POP3 PASS response:  +OK 
  POP3 stat response:  0 messages, 0 octets
  POP3 list response:  +OK 
  finished retrieving messages
POP3 session completed for "************"
Retrieved 0 messages for 0 local recipients

getmail finished for ************@mail.x9internet.co.uk:110
Now, I would think the only reason for it doing this is in case of an error, but I can see no error there!
 
Old 05-30-2003, 11:33 AM   #2
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
erg, sorted it. No worries
 
Old 05-30-2003, 11:33 AM   #3
labr@
Member
 
Registered: May 2003
Location: Dallas, TX
Distribution: Slackware. (There are others?)
Posts: 46

Rep: Reputation: 16
looks more like a confirmation

What you posted looks more like a confirmation. If Cron did report an error I don't think it would e-mail the user (it would be in the syslog). When there is a message, is it retrieved? And if so do you still receive the "error/confirmation".
 
Old 05-30-2003, 01:06 PM   #4
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Yeh, it was a confirmation.

Apparently, by default, cron sends all program output, by email, to the local user, unless you append something to the crontab. Why it didn't e-mail for the first user escapes me. However, adding this to the crontab fixed it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
really wierd problem mrchin Linux - Newbie 6 09-01-2004 05:33 PM
wierd problem Zerodark Slackware 2 10-31-2003 09:53 PM
wierd problem jt1020 Linux - General 2 05-19-2003 03:29 PM
wierd problem! jt1020 Linux - General 1 05-07-2003 12:29 PM
Wierd Internet problem Paul_assheton Linux - Networking 3 05-13-2002 05:45 AM


All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration