Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________

On Aug 19, 2000 at 04:33, suresh  samuel wrote:

>i have installed fetchmail in my system. fetchmail does not startup
>automatically, i have to manually start it each time after the systems
>boots up. how do i start it during bootup.

fetchmail isn't supposed to start at bootup. You can however stick it in
your crontab. I put it in /etc/ppp/ip-up.local (with su, of course).

Here's my ip-up.local:

#!/bin/bash

echo ""|mail satyap@localhost -s "ip-up.local"
/bin/su satyap -c "/usr/bin/fetchmail" >>/home/satyap/fetchmail.log
sendmail -q -vvvvvv -d1000
/bin/su satyap -c "/home/satyap/myip-update-1.1/MOC.pl">/dev/tty24 &
/bin/su satyap -c "/home/satyap/perl/cjbnet/cjbnet.pl hal9k \
        [PASSWORD]">/dev/tty24 &

#/bin/su satyap -c "/bin/sh /home/satyap/dnet/fl/flush" |mail \
        satyap@localhost
/bin/su root -c "/usr/local/sbin/fetchnews -vvv" >/dev/tty24
sleep 5
/var/spool/slrnpull/slrnpull.sh
sleep 10

if [ -e /root/ppp-blit.lck ]; then
        rm -f /root/ppp-blit.lck
        ifdown ppp0
        ifdown ppp1
echo ""|mail satyap@localhost -s "Finished blitting"
fi

exit 0


PS: Fix your line length.
PPS: Snip out irreleveant footers and replies!

-- 
Satya. <URL:http://satya.virtualave.net/>
US-bound grad students! For pre-apps, see <URL:http://quickapps.cjb.net/>
I don't care! Reboot that server! I have work to do!


_______________________________________________
Website: http://www.ilug-bom.org.in/
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to