ppp-asxeto

Valotasios George valotas at hol.gr
Mon Apr 13 11:19:53 EEST 1998


At 11:29 ìì 8/3/1998 +0200, you wrote:
>At 03:33 ìì 7/3/1998 -0800, you wrote:
>>
>>On Sat, 7 Mar 1998, Michalas Othon wrote:
>>
>>> Ena paradeigma
>>> Ftiaxneis ena ekteleshmo kai
>>> to energopoieis mesw crontab ana pentalepto
>>> ================Arxh=============
>>> #!/bin/sh
>>> #
>>> # (C) 1996 by Christofer Karatzinis (chka at forthnet.gr)
>>> #
>>> ps -aux | grep pppd > /tmp/temp1.ppp
>>> A=`grep detach /tmp/temp1.ppp`
>><xrits-xrats>
>>
>>Auto einai proxeirh kai eukolh lysh. Den ennoousa auto.
>> Milaw gia kati pou 8a parakolou8ei thn seiriakh kai 8a to katalavainei me
>to pou peftei .
>> Giauto proteina ton powerd .
>>Allaxa kai to entry sto inittab anti na kanei reboot na xanakalei to dip
>alla den mou doulepse [profanws den e3elave o mikros powerd thn ptwsh ths
>grammhs ws ptwsh tashs gia na eidopoihsei to init :-( ]
>>Den exw doulepsei me ton powerd [8a zhthsw ups fetos apo ton Ai Vasilh
>8-)] aplaeipa na to dokimasw. 
>>Pashs fysews alles protaseis apodektes [oi C-guru's mhpws exoun tipote na
>proteinoun?]
>>
>>thnx in advance
>>thalis
>>
>>---------------------
>>43rd Law of Computing:
>>        Anything that can go wr
>>Segmentation violation -- Core dumped   
>>--------------------
>>
>>
>
>Kati tetoio prospathw na kanw tora ...
>Steiriksou sto ppp-down 
>
>Molis to teleiosw tha se enimerosw ...
>


Loipon gia to parapanw ... TI EKANA ?

Eftiaksa ena script PPPON mesa sto /bin

Ekei tou evala
#-------------------------PPPON SCRIPT-----------------------
echo "YES" > /var/run/ppp-StayAlive

kai meta to tou eipa na ekteleei to scriptaki pou tha kanei tin sindesh ....

#-----------------------END OF PPPON SCRIPT------------------

Meta piga sto /etc/ppp/ppp-down (den thimame akrivos to onoma)
kai evala ta parakato :

#----------/etc/ppp/ppp-down edit----------------------

StayAlive='cat /var/run/ppp-StayAlive'
if [ $StayAlive = YES ]; then
    exec /bin/pppon
else
  echo Internet Connection Terminated ..
fi

#-----------End of edit ------------------------------------------------

Omos prepei na ftiaksei kai ena allo scriptaki px PPPOFF sto /bin me ta
parakatw

#-------------------------PPPOFF SCRIPT----------------------------------

echo "NO" > /var/run/ppp-StayAlive

kai meta kalese to scriptaki pou tha kanei terminate thn ssyndesh ...

#-----------------------END OF PPPOFF SCRIPT--------------------



.
.
.
_____________________________________________________
-= Valotasios George | Why you go somewhere on foot,
-= valotas at hol.gr    | when you can use your car ?


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list