Berichtigung [war: Re: cron-job: ppp-Verbindung prüfen & ggf. wieder herstellen]
*******************************************
* Don't Cc: me and wase my resources, *
* I am on the List, if I write here. *
*******************************************
Hallo,
Tja, bash ignoriert...
Habe das script per mail versendet und dbei wurden meine Variablen
umgesetzt... Arrgggg...
So ist es richtig:
------------------------------------------------------------------------
#!/bin/bash
#
# /usr/sbin/check_connect
#
for i in `seq 1 6` ; do
ping -c 1 www.debian.org 2>/dev/null 1>/dev/null
if [ $? -eq 0 ] ; then
echo 2004-02-04 20:41:24" : OK." >> /var/log/connect_check
exit 0
else
if [ $i -eq 6 ] ; then exit 0 ; fi
echo 2004-02-04 20:41:24" : Restarting pppd" >> /var/log/connect_check
/etc/init.d/ppp restart >/dev/null
fi
sleep 10
done
------------------------------------------------------------------------
Greetings
Michelle
--
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org/
Reply to: