cron job for Mac OSX? (BSD Unix)

Networking/Security Forums -> Macintosh

Author: EricTheBald PostPosted: Tue Dec 09, 2003 3:21 pm    Post subject: cron job for Mac OSX? (BSD Unix)
    ----
I want to set up a chron job to send a ping to my ISP every 10 seconds to keep my link alive. (Don't as)

I know enough about unix to know it can be done, but I don't know how.

Would someone be kind enough to tell me what commands to use to set this up?

Author: T3XLocation: London PostPosted: Tue Dec 09, 2003 3:47 pm    Post subject:
    ----
Ok, not sure I totally understand.

But what about using ping with an interval? I know you can use cron for minutes but not sure about seconds.

Wouldn't a
Code:
ping -i 10 <IP>

do the trick?

T3X

Author: shakin PostPosted: Tue Dec 09, 2003 3:50 pm    Post subject:
    ----
run 'crontab -e' and see what happens. In Linux you'd get a text editor to add cronjobs with, but if OSX works differently then I can't help you.

Your cron job would look like this:

* * * * * ping 255.255.255.255

That would run it every minute as long as your computer is turned on. I don't think you can run it every 10 seconds with the usual cron, but maybe an alternative cron will be able to.

Author: EricTheBald PostPosted: Tue Dec 09, 2003 4:58 pm    Post subject:
    ----
Whoa... T3X.... That worked great. Exactly what I was looking for!

Thank you, and thank you too Shakin.

Author: T3XLocation: London PostPosted: Tue Dec 09, 2003 5:05 pm    Post subject:
    ----
no problem

Author: wtshawLocation: Alvarado, Texas PostPosted: Wed Mar 02, 2005 2:34 am    Post subject: Keep Alive!
    ----
I had a similiar problem which I patched it myself with an automatic frequent and obnoxious email check. The real problem was in setting up the cable modem and firewalls properly to be on all the time, or things will go away.

Figure that the guru on call can't write good specialized applications like me, but what he does is worthy of honorable mention...Thanks, Rick.



Networking/Security Forums -> Macintosh


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group