Main Area and Open Discussion > General Software Discussion
wanted: CLI tool to determine if Internet access yes/no
Cavalcader:
What about the ping command that comes with Windows?
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name
Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.
brotherS:
What about the ping command that comes with Windows?
-Cavalcader (April 25, 2006, 07:29 PM)
--- End quote ---
Then I'd need to store the output and check it. I think it's just easier to use jgpaiva's idea.
Cavalcader:
Then I'd need to store the output and check it. I think it's just easier to use jgpaiva's idea.
-brotherS (April 26, 2006, 01:48 AM)
--- End quote ---
Aha! After reading the linked thread I see better what you're after. I've used Pingometer with good success (it's mentioned in that thread). There's a related util called WWIP (Watch WAN IP) if you have a router. It'll basically pull an HTML page from it and look for a string that you specify. Great concept to stay current on a dynamic IP address without having to contact an external server, but I realize that's not exactly what you're looking for.
:)
Navigation
[0] Message Index
[*] Previous page
Go to full version