Koozali.org: home of the SME Server

Strange behavior of crontab file

Offline fpcomputers

  • *
  • 8
  • +0/-0
    • http://www.fpcomputers.biz
Strange behavior of crontab file
« on: February 28, 2006, 03:39:01 PM »
Hi,

in SME version 6.5 and before i created a file to get mail from other servers. This file was made in
templates/etc/crontab           and looks like
*/2 * * * * root /usr/bin/fetchmail -a -f
In the root dir I've created the .fetchmailrc where the accounts are stored included the password.

After all I use /sbin/e-smith/expand-template /etc/crontab
All this works fine but in version 7.0 pre 3 I can't get this solution to work.
Nothing happens at all.

Does someone have a solution for me to get this at work under version 7.0pre3?

Thanx in regard,

Fred Wormsbecher
...

gardnc

Strange behavior of crontab file
« Reply #1 on: March 01, 2006, 11:53:35 PM »
Try looking in the /var/log/cron logfile to see if there is an error message associated with that cron.  Every cron that runs should have an entry and a possible error entry every time the cron runs.  Often you can see things like permission problems that appear to be otherwise hidden.

Larry

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Strange behavior of crontab file
« Reply #2 on: March 02, 2006, 12:37:09 AM »
Quote from: "fpcomputers"

in SME version 6.5 and before i created a file to get mail from other servers. This file was made in
templates/etc/crontab           and looks like
*/2 * * * * root /usr/bin/fetchmail -a -f
In the root dir I've created the .fetchmailrc where the accounts are stored included the password.

After all I use /sbin/e-smith/expand-template /etc/crontab
All this works fine but in version 7.0 pre 3 I can't get this solution to work.
Nothing happens at all.


Check "man fetchmail". "-f" needs to be followed by a filepath, e.g. "-f /root/.fetchmailrc".