Hi everyone, Could be a silly question but what is the best option to use fetchmail as a daemon and start it with inetd or some other way Thanks -- Togan Muftuoglu toganm@turk.net -- 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/Doku/FAQ/
Togan Muftuoglu wrote:
Hi everyone,
Could be a silly question but what is the best option to use fetchmail as a daemon and start it with inetd or some other way
Fetchmail is a user process. It will places itself in the background by default. If you have a permanent network connection you can run it from the commandline with nohup. If you have non-permanent network connection, you can run it automatically from ip-up or manually from the commandline. Koos Pol ---------------------------------------------------------------------- S.C. Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available -- 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/Doku/FAQ/
does wvdial call ip_up I ended up calling fetchmail on a cron
-----Original Message----- From: koos@nl.compuware.com [mailto:koos@nl.compuware.com]On Behalf Of Koos Pol Sent: 28 April 2000 10:18 To: suse-linux-e Subject: Re: [SLE] Running Fetchmail as a deamon
Togan Muftuoglu wrote:
Hi everyone,
Could be a silly question but what is the best option to use fetchmail as a daemon and start it with inetd or some other way
Fetchmail is a user process. It will places itself in the background by default. If you have a permanent network connection you can run it from the commandline with nohup. If you have non-permanent network connection, you can run it automatically from ip-up or manually from the commandline.
Koos Pol ---------------------------------------------------------------------- S.C. Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
-- 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/Doku/FAQ/
-- 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/Doku/FAQ/
dids wrote:
does wvdial call ip_up
Yes wdial calls the ip up Koos Pol wrote
Fetchmail is a user process. It will places itself in the background by default. If you have a permanent network connection you can run it from the commandline with nohup. If you have non-permanent network connection, you can run it automatically from ip-up or manually from the commandline.
Currently I do it manually as fetchmail -d 300 After checking the ip-up script there is a line regarding fetchmail which is commented #/usr/bin/fetchmail -a -v >> /var/log/fetchmail 2>&1 & o if I comment out it and put the options -d 300 am I correct to understand it will work as a daemon ? but how does this script will know fetchmail config file it should read and check the appropriate accounts. or is there a way to centarilize the fecthmail config file also Thanks -- Togan Muftuoglu toganm@turk.net -- 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/Doku/FAQ/
Id better start using that then :) thanks dids www.diddyland.com
-----Original Message----- From: togan@dalisdunyasi.com [mailto:togan@dalisdunyasi.com]On Behalf Of Togan Muftuoglu Sent: 28 April 2000 11:28 To: suse-linux-e@suse.com Subject: Re: [SLE] Running Fetchmail as a deamon
dids wrote:
does wvdial call ip_up
Yes wdial calls the ip up
Koos Pol wrote
Fetchmail is a user process. It will places itself in the background by default. If you have a permanent network connection you can run it from the commandline with nohup. If you have non-permanent network connection, you can run it automatically from ip-up or manually from the commandline.
Currently I do it manually as fetchmail -d 300
After checking the ip-up script there is a line regarding fetchmail which is commented
#/usr/bin/fetchmail -a -v >> /var/log/fetchmail 2>&1 &
so if I comment out it and put the options -d 300 am I correct to understand it will work as a daemon ? but how does this script will know fetchmail config file it should read and check the appropriate accounts. or is there a way to centarilize the fecthmail config file also
Thanks -- Togan Muftuoglu toganm@turk.net
-- 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/Doku/FAQ/
-- 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/Doku/FAQ/
dids wrote:
does wvdial call ip_up
I ended up calling fetchmail on a cron
No. But then again no individual program calls ip_*. These scripts are forked from (i)pppd as soon as a ppp connection is initiated (by whatever means, including wvdial). So the whole question if wvdial calls ip_up is off topic. Koos Pol ---------------------------------------------------------------------- S.C. Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available -- 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/Doku/FAQ/
Togan Muftuoglu wrote:
Hi everyone,
Could be a silly question but what is the best option to use fetchmail as a daemon and start it with inetd or some other way
In that case I'd write a script, place it in /sbin/init.d and symlink it from ../rc2.d and rc3.d. I think the best starting point is the "skeleton" script from the same location. 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/Doku/FAQ/
I run fetchmail when a user logs in. I put it in ~/.bashrc to start fetchmail as a daemon and place the quit command in ~/.bash_logout to stop the process after a user logs out. Mark On Fri, 28 Apr 2000, Togan Muftuoglu wrote: | Hi everyone, | | Could be a silly question but what is the best option to use fetchmail | as a daemon and start it with inetd or some other way | | Thanks | -- | Togan Muftuoglu | toganm@turk.net | | -- | 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/Doku/FAQ/ | | -- 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/Doku/FAQ/
On Fri, 28 Apr 2000, Togan Muftuoglu wrote: tm> Hi everyone, tm> tm> Could be a silly question but what is the best option to use fetchmail tm> as a daemon and start it with inetd or some other way tm> I use the following in my crontab: 0-59/5 * * * * fetchmail -d 600 >/dev/null 2>&1 which will basically check every five minutes to see if its up, check for mail every ten minutes, and launch it if it's not up. When I want to check mail on the fly, I use a little routine I posted on my website (updated when I get the chance) that launches a small term window, and shows the messages being downloaded. I use it quite a bit. tm> Thanks tm> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- 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/Doku/FAQ/
participants (6)
-
Anonymous User
-
diddy@diddyland.com
-
juergen.braukmann@ruhr-west.de
-
koos.pol@nl.compuware.com
-
toganm@turk.net
-
tomas@primenet.com