From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Comm] [Fwd: [Sysadmins] =?iso-8859-5?Q?=DA=D0=DA?= =?iso-8859-5?Q?_=D7=D0=DF=E3=E1=E2=D8=E2=EC?= Popsneaker..] From: Yura Kalinichenko To: ALT Linux Community In-Reply-To: <440FD3B9.2080800@ostap.ru> References: <440FD3B9.2080800@ostap.ru> Content-Type: text/plain; charset=koi8-u Organization: iceB Software Group Date: Thu, 09 Mar 2006 22:27:47 +0200 Message-Id: <1141936068.3223.12.camel@yuk.home.int> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1 (2.0.1-alt0.5) Content-Transfer-Encoding: quoted-printable X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2006 06:14:12 -0000 Archived-At: List-Archive: List-Post: =F7 =FE=D4=D7, 09/03/2006 =D7 11:05 +0400, =EB=CF=D2=CF=D4=CB=CF=D7 =E7=C5= =CF=D2=C7=C9=CA =D0=C9=DB=C5=D4: > =DE=D4=CF=C2=D9 =CF=CE =D7=D3=C5=D4=C1=CB=C9 =D7=D3=C5=C7=C4=C1 =DA=C1=D0= =D5=D3=CB=C1=CC=D3=D1 > =D3=C5=CA=DE=C1=D3 =C4=C5=CC=CF =CF=C2=D3=D4=CF=C9=D4 =D4=C1=CB, =DE=D4= =CF =D5=D3=D0=C5=DB=CE=D9=CD =C2=D9=D7=C1=C5=D4 =CF=C4=CE=C1 =C9=DA =C4=C5= =D3=D1=D4=C9-=C4=D7=C1=C4=C3=C1=D4=C9 > =D0=CF=D0=D9=D4=CF=CB.. =C1 =CD=CF=D6=C5=D4 =C9 =D4=C1=CB =DE=D4=CF =C4= =C5=D3=D1=D4=D8 =D0=CF=C4=D2=D1=C4 =D5=C4=C1=DE=CE=D9=C8 > =D0=D2=C9=DE=C5=CD =D7 =D3=CC=D5=DE=C1=C5 =CE=C5=D5=C4=C1=DE - =CE=C9=CB= =C1=CB=C9=C8 =D7=CF=D0=CC=C5=CA =CE=C9 =D7 =D3=CF=C2=D3=D4=D7=C5=CE=CE=CF= =CD =CC=CF=C7=C5 =CE=C9 =D7 > =D3=C9=D3=D4=C5=CD=CE=CF=CD =CE=C5=D4 =F1 =CF=C2=CF=DB=C5=CC =DC=D4=CF =D4=C1=CB: =C9=CD=C5=C5=D4=D3=D1 =D3=CB=D2= =C9=D0=D4 /etc/ppp/ip-up.d/zzzmail, =CB=CF=D4=CF=D2=D9=CA =D5 =CD=C5=CE=D1 =DA=C1=CE=C9=CD=C1=C5=D4=D3=D1 =CF=D4=D0=D2=C1=D7=CB=CF=CA/=D0= =D2=C9=C5=CD=CF=CD =D0=CF=DE=D4=D9. =F0=C5=D2=C5=C4 =D0=D2=C9=C5=CD=CF=CD= (fetchmail) =D1 =D7=D3=D4=C1=D7=C9=CC =D3=CC=C5=C4=D5=C0=DD=C5=C5: LOG=3D/var/log/ppp.log SERVERNAME=3Dpop.vinnitsa.com errcnt=3D30 while [ $errcnt -gt 0 ]; do ping -c 3 $SERVERNAME >> $LOG 2>&1 if [ $? -eq 0 ]; then break fi echo "Ping status=3D$?" >> $LOG errcnt=3D`expr $errcnt - 1` sleep 1 done echo "Ping count=3D$errcnt" >> $LOG if [ $errcnt -eq 0 ]; then echo "Ping failure." >> $LOG kill `cat /var/run/$1.pid` exit 1 fi while [ $errcnt -gt 0 ]; do popsneaker $SERVERNAME if [ $? -eq 0 ]; then break fi errcnt=3D`expr $errcnt - 1` sleep 1 done if [ $errcnt -eq 0 ]; then echo "popsneaker failure." >> $LOG kill `cat /var/run/$1.pid` exit 1 fi --=20 Yura Kalinichenko