currently, i am doing a 

# ping host.domain -i 5 -q &

just like vince mentioned. i was already using this before. however, i
would just like to know is there is a crontab way of executing things by
the second or maybe fractionals of a minutes.

thanks for the advice anyway.

> I found the question of whether or there is a way to make cron run every N 
> number of seconds quite interesting. As far as I know, there is no way to do 
> this, so you will have to make a crontab entry that runs a brute-force program 
> like this:
> 
> ping <host> ; sleep 10 ; ping <host> ; sleep 10 ; ping <host> ; sleep 10 ; ping 
> <host> ; sleep 10 ; ping <host> ; sleep 10 ; ping <host> ; sleep 10 ;
> 
> Then, just execute it every minute using crontab.
> 
> Alternatively, you can do something like this:
> 
> ping -i 10 <host>
> 
> doing so would send the ping command at every 10-second interval.
> 
> Finally, you might not need to do this-isn't it that keepalive is built-in for 
> all kernels? I'm not so sure about this though, so maybe someone here knows 
> better and could expound on this further. You would need to recompile to do 
> this, of course :)
> 
> 
> dennison
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >
> >notice some ISP's have this evil habit of disconnecting their users who
> >have been idle for just a few seconds like say 10 seconds for my ISP. i
> >would like to write a crontab entry that executes a single ping every
> >5 seconds. this way there is always activity. 
> >
> >i was only able to find our how to do it for intervals of one minute. 
> >
> >thanks.
> >
> > 
> >---------------------
> >[EMAIL PROTECTED]
> > 
> >DISCLAIMER:
> >Use of this advanced computing technology does not imply an endorsement
> >of Western industrial civilization.
> > 
> >
> >
> >_
> >Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> >To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> >
> >
> 
> --------
> This mail sent through IMP: mail.ateneo.net
> 
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 

 
---------------------
[EMAIL PROTECTED]
 
DISCLAIMER:
Use of this advanced computing technology does not imply an endorsement
of Western industrial civilization.
 



_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to