• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

cron job for Mac OSX? (BSD Unix)

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Macintosh

View previous topic :: View next topic  
Author Message
EricTheBald
Just Arrived
Just Arrived


Joined: 06 Feb 2003
Posts: 3


Offline

PostPosted: Tue Dec 09, 2003 3:21 pm    Post subject: cron job for Mac OSX? (BSD Unix) Reply with quote

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?
Back to top
View user's profile Send private message AIM Address
T3X
Just Arrived
Just Arrived


Joined: 02 Sep 2003
Posts: 0
Location: London

Offline

PostPosted: Tue Dec 09, 2003 3:47 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
shakin
Just Arrived
Just Arrived


Joined: 18 Jul 2003
Posts: 0


Offline

PostPosted: Tue Dec 09, 2003 3:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
EricTheBald
Just Arrived
Just Arrived


Joined: 06 Feb 2003
Posts: 3


Offline

PostPosted: Tue Dec 09, 2003 4:58 pm    Post subject: Reply with quote

Whoa... T3X.... That worked great. Exactly what I was looking for!

Thank you, and thank you too Shakin.
Back to top
View user's profile Send private message AIM Address
T3X
Just Arrived
Just Arrived


Joined: 02 Sep 2003
Posts: 0
Location: London

Offline

PostPosted: Tue Dec 09, 2003 5:05 pm    Post subject: Reply with quote

no problem
Back to top
View user's profile Send private message MSN Messenger
wtshaw
Just Arrived
Just Arrived


Joined: 28 Feb 2005
Posts: 0
Location: Alvarado, Texas

Offline

PostPosted: Wed Mar 02, 2005 2:34 am    Post subject: Keep Alive! Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Macintosh All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter