Hi all,

I get my mail several times a day using crontab to dial in 
I need to terminate the connection when there is no more activity 
on the ppp link sometimes it is 3 Min sometimes it is 30 Min.

I unfortunately do not know how to write these script files 
but my idea of it is something like this

-------------------------
if
/usr/sbin/pppstats -c 30 | grep "0      0      0      0      0" 
(is true 5 times)
then 
(run the /etc/ppp-off script)
-------------------------

my output on pppstats look like this

    8144     11      1     10      0  |      836     10      0     10    0
   16202     13     10      3      0  |      490      7      0      7    0
   10286     12      2     10      0  |      754      9      0      9    0
   13984     13      8      5      0  |      588      8      0      8    0
    9838     11      3      8      0  |      767     10      0     10    0
   14192     14      8      6      0  |      643      9      0      9    0
    5692     20      2     13      0  |     1205     18      2     13    3
       0      0      0      0      0  |        0      0      0      0    0
       0      0      0      0      0  |        0      0      0      0    0
      IN   PACK VJCOMP  VJUNC  VJERR  |      OUT   PACK VJCOMP  VJUNC NON-VJ
       0      0      0      0      0  |        0      0      0      0    0
       0      0      0      0      0  |        0      0      0      0    0
       0      0      0      0      0  |        0      0      0      0    0
       0      0      0      0      0  |        0      0      0      0    0

Thanks for your input
Jacob


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to