Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 8, 2010, 04:10 PM   #1
Haqq
macrumors member
 
Join Date: Sep 2008
Location: Toronto
Constant Ping Menubar App

This may seem like a very bizzarre question but.

My macbook and 2wire router/modem hate each other. I get constant timeouts! But I found a workaround (cred: apple.com boards) if I open up terminal ping my router ip 192.186.x.x and it just constantly pings I DO NOT disconnect. I put it under test left; my macbook on for a week straight no problemo!

Thus coming to my request. I hate having a terminal window open seeing nothing but

Code:
64 bytes from 192.168.x.x: icmp_seq=1346 ttl=255 time=1.335 ms
64 bytes from 192.168.x.x: icmp_seq=1347 ttl=255 time=2.090 ms
64 bytes from 192.168.x.x: icmp_seq=1348 ttl=255 time=1.375 ms
Its fugly.

I was hoping someone has heard of a menubar app I can run that just does it in the background? TBH I have very LIMITED programming knowledge so I am not sure where to go here but something like this vimeo but when I click on it, opens up a terminal page of the pinging in action?

Where do I from here?

Thanks!

Taz.
__________________
i came, i saw, i ran away
Haqq is offline   0 Reply With Quote
Old Oct 8, 2010, 05:47 PM   #2
MorphingDragon
macrumors 603
 
MorphingDragon's Avatar
 
Join Date: Mar 2009
Location: Planet Key
Send a message via Skype™ to MorphingDragon
Quote:
Originally Posted by Haqq View Post
This may seem like a very bizzarre question but.

My macbook and 2wire router/modem hate each other. I get constant timeouts! But I found a workaround (cred: apple.com boards) if I open up terminal ping my router ip 192.186.x.x and it just constantly pings I DO NOT disconnect. I put it under test left; my macbook on for a week straight no problemo!

Thus coming to my request. I hate having a terminal window open seeing nothing but

Code:
64 bytes from 192.168.x.x: icmp_seq=1346 ttl=255 time=1.335 ms
64 bytes from 192.168.x.x: icmp_seq=1347 ttl=255 time=2.090 ms
64 bytes from 192.168.x.x: icmp_seq=1348 ttl=255 time=1.375 ms
Its fugly.

I was hoping someone has heard of a menubar app I can run that just does it in the background? TBH I have very LIMITED programming knowledge so I am not sure where to go here but something like this vimeo but when I click on it, opens up a terminal page of the pinging in action?

Where do I from here?

Thanks!

Taz.
This is for linux but it should work for Mac OSX.

http://www.watchingthenet.com/ubuntu...al-window.html
__________________
The only difference between an American and a Downunderian is that Americans only think they're free.
MorphingDragon is offline   0 Reply With Quote
Old Oct 9, 2010, 02:41 AM   #3
Haqq
Thread Starter
macrumors member
 
Join Date: Sep 2008
Location: Toronto
Quote:
Originally Posted by MorphingDragon View Post
This is for linux but it should work for Mac OSX.

http://www.watchingthenet.com/ubuntu...al-window.html
Can you simplify or rather, elaborate that into something I can understand

Appreciate the help!

Taz.
__________________
i came, i saw, i ran away
Haqq is offline   0 Reply With Quote
Old Oct 9, 2010, 03:43 AM   #4
MorphingDragon
macrumors 603
 
MorphingDragon's Avatar
 
Join Date: Mar 2009
Location: Planet Key
Send a message via Skype™ to MorphingDragon
Code:
nohup ping 192.168.x.x &
You can check that its running in the background by looking at activity monitor and looking for ping.

If for any reason you need to stop it, use activity monitor. I'm not sure if this command lives through a reboot or not.
__________________
The only difference between an American and a Downunderian is that Americans only think they're free.

Last edited by MorphingDragon; Oct 9, 2010 at 05:15 PM.
MorphingDragon is offline   0 Reply With Quote
Old Oct 9, 2010, 07:34 AM   #5
robbieduncan
Demi-God (Moderator)
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Alternative solution:

Open the Apple Script Editor and paste this into it

Code:
repeat
	do shell script "ping -c 1 192.168.0.1 > /dev/null"
	do shell script "/bin/sleep 60"
end repeat
Save it as an application. Obviously alter the IP address to the correct one and alter the 60 to the number of seconds you want between pings. The only bad thing about this is that the only way to stop it is to force quit it...
robbieduncan is offline   0 Reply With Quote
Old Oct 9, 2010, 09:51 PM   #6
Haqq
Thread Starter
macrumors member
 
Join Date: Sep 2008
Location: Toronto
Perfect both methods work! I went with method one btw.
__________________
i came, i saw, i ran away
Haqq is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Remove third party apps from menubar? Halvard Mac Applications and Mac App Store 6 Dec 5, 2012 08:52 PM
Name that app? (iTunes controller, below menubar) ttttaylor Mac Applications and Mac App Store 1 Jun 23, 2011 11:31 PM
Ping iphone app lilyflowers iPhone and iPod touch Apps 0 Apr 11, 2010 03:11 PM
Looking for a Ping Pong app ms.annette iPhone and iPod touch Apps 2 Sep 12, 2009 05:36 PM
Starting certain menubar apps places them to the right of the Spotlight retrovertigo Mac Basics and Help 4 Jul 1, 2006 01:18 AM


All times are GMT -5. The time now is 10:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC