On Mon, Jun 16, 2008 at 8:07 AM, Constant Brouerius van Nidek
Looking for a daily mailcheck on one of my accounts I am thinking of running cron. Read the man page of cron, crontab and are as ever after reading man pages, totally confused. Wiki was the second choice. Still confused. Is there a gui for cron? And how can I let Kmail check one mail client once a day? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
There is more than one man page for crontab. The one you want is man 5 crontab The easiest way to set one of these up is kcron in kde but you can also do it with any text editor. A crontab file can be named anything, because the file is only used to as a backup and a source for installing your actual crontab. So I have a cron job that I want to run periodically to virus scan files in my home directory just in case a virus wanders in there or gets transferred from my windows machine. My crontab contains this line: 05 3 * * Tue,Fri /usr/bin/clamscan -r -i --exclude-dir=VirtualMachines --no-archive /home/jsa That says at 5 minutes after 3 am on Tuesdays and Fridays it should run the clamscan job. After carefully coding the above after reading man 5 crontab I save it to a file, in this case jsacrontab. Next I install it by reading man 1 crontab with a line like this: crontab jsacrontab Done. Now As for checking mail, if Kmail is up and running it can be set up to check the mail for any accounts on the schedule you set. The specific "once per day" thing is best set on the Accounts tab in Config Kmail. Check the box for "Checkmail on startup" and then enter 1440 in interval mail checking. Or there is fetchmail. Its another can of worms, but I think Yast has settings for it buried in the mail setup stuff. It will fetch mail on any schedule you want. -- ----------JSA--------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org