60Minute Timeout

LethalChicken

Expert Member
Joined
Sep 14, 2004
Messages
1,340
Reaction score
3
Location
00-07-E9-13-97-54
Hi All,

What's the best way to avoid the 60minute timeout ... other then having a ping every 55minutes (Task manager WinXP) (Cron job in linux) ... I'm more interested in the linux answer ...

Txs


We are Telkom - Resistance is Futile - You will be Assimilated
 
i use a script from cron that does this it is a cheap and nasty please clean it up and send it back :)

--------
#!/bin/bash

DEF_GW=`/sbin/route -n |awk '$1 == "0.0.0.0" {print $8}'`
DEF_GADDR=`/sbin/ip addr show $DEF_GW |tail -1 |awk '{print $4}' |cut -d/ -f1`

ping -c 3 $DEF_GADDR
---------------
 
create a file /usr/local/bin/linkup
put it in there
chmod 750 /usr/local/bin/linkup
then put that in crontab and that depends on what cron you use
crontab -e to edit it here is my entry you may not be useing the same cron as me ... see the man pages
*/20 * * * * /usr/sbin/linkup > /dev/null 2>&1
 
txs loosecannon .. and yeah Andre .. in Windows it's click .. double click ... apply ...

We are Telkom - Resistance is Futile - You will be Assimilated
 
Top
Sign up to the MyBroadband newsletter
X