Dear Linux User My fetchmail now is running at Linux .. I would like it to be run at office hour. Hoe to configure the schedule for fetchmail Best Regards, SKLIM -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On Mon, 11 Sep 2000, SKLIM wrote: s> Dear Linux User s> s> My fetchmail now is running at Linux .. I would like it to be run at office s> hour. s> Hoe to configure the schedule for fetchmail s> I did something along the same lines but for home with an ISDN line, at certain hours it was more expensive then others. So I had to come up with the best way to do it and save money. Anyway, heres my scripts from back then, so you can see what I did and adjust accordingly for your specific situation. # kill fetchmail if running furing these times 0 0 * * sat fetchmail -q >/dev/null 2>&1 0 8 * * mon-fri fetchmail -q >/dev/null 2>&1 0 17 * * mon-fri fetchmail -q >/dev/null 2>&1 0 23 * * mon-fri fetchmail -q >/dev/null 2>&1 # start fetchmail if not running during these times 0-59/10 8-16 * * mon-fri fetchmail -d 7200 >/dev/null 2>&1 0-59/10 17-22 * * mon-fri fetchmail -d 3600 >/dev/null 2>&1 0-59/10 23,0-7 * * mon-fri fetchmail -d 1800 >/dev/null 2>&1 0-59/10 * * * sat,sun fetchmail -d 1800 >/dev/null 2>&1 Now the way I read what you posted, you only want it to run during working hours and no others, so you'll probably want somethng more along these lines. # kill fetchmail if running during these times 0-59/10 * * * sat,sun fetchmail -q >/dev/null 2>&1 17-7 * * * mon-fri fetchmail -q >/dev/null 2>&1 # start fetchmail if not running during these times 0-59/10 7-17 * * mon-fri fetchmail -d 300 >/dev/null 2>&1 Anyway, hope this gives you some ideas to work with. s> s> s> s> Best Regards, s> SKLIM s> s> s> s> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16 "The four building blocks of the universe are fire, water, gravel and vinyl." -- Dave Barry -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On Sun, 10 Sep 2000, S.Toms wrote: st> On Mon, 11 Sep 2000, SKLIM wrote: st> st> Now the way I read what you posted, you only want it to run during st> working hours and no others, so you'll probably want somethng more along st> these lines. st> st> # kill fetchmail if running during these times st> 0-59/10 * * * sat,sun fetchmail -q >/dev/null 2>&1 st> 17-7 * * * mon-fri fetchmail -q >/dev/null 2>&1 st> err, oops, this should have read 0-59/10 17-7 * * mon-fri fetchmail -q >/dev/null 2>&1 orry bout that. st> # start fetchmail if not running during these times st> 0-59/10 7-17 * * mon-fri fetchmail -d 300 >/dev/null 2>&1 st> st> Anyway, hope this gives you some ideas to work with. st> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16 "The sooner all the animals are dead, the sooner we'll find their money." -- Ed Bluestone, "The National Lampoon" -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
SKLIM wrote:
Dear Linux User
My fetchmail now is running at Linux .. I would like it to be run at office hour. Hoe to configure the schedule for fetchmail
In that case, I would not run it in demon mode ( -d something) but in fetch-only-once mode. Then, I'd add the call to crontab, with entries for office hours: 0,15,30,45 6-18 * * * root test -e /usr/bin/fetchmail && /usr/bin/fetchmail -f /etc/fetchmailrc (the above command is *one* line) further option may be added. I use to log the output of fetchmail... Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
I was just wondering what the pros/cons are of running fetchamil in daemon mode are. I currently run fetchmail at set times of the day using the cron. What would be the advantages/disadvantages of running it in daemon mode ? Sean. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (4)
-
juergen.braukmann@ruhr-west.de
-
sean.akers@ntlworld.com
-
sklim@elm-net.com
-
tomas@primenet.com