https://github.com/cako/checknet
Little script to check if the internet is working.
https://github.com/cako/checknet
Last synced: 8 months ago
JSON representation
Little script to check if the internet is working.
- Host: GitHub
- URL: https://github.com/cako/checknet
- Owner: cako
- Created: 2011-03-02T20:44:52.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-25T00:58:13.000Z (about 15 years ago)
- Last Synced: 2023-03-12T09:41:54.874Z (over 3 years ago)
- Language: Perl
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
#===============================================================================#
# #
# Copyright 2011 Carlos Alberto da Costa Filho #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see . #
# #
#===============================================================================#
# #
# FILE: checknet.pl #
# #
# USAGE: ./checknet.pl #
# perl checknet.pl #
# #
# DESCRIPTION: First I checked if the internet was up by launching a browser #
# and going to www.google.com. #
# The I decided to start pinging it. Finally, I added an endless #
# loop and stuck in 'espeak' so I didnt have to sit at the #
# computer all day. This was in bash. I finally decided to port #
# it to perl, in order to clean it up a bit. This is the outcome.#
# The program will ping google. If it get's a solid connection #
# (all packets received), then it will say "Internet!" and try #
# again. It will remain quiet until the solid connection is lost.#
# To quit, use your shell's terminate sequence. In bash it's #
# CTRL-C. #
# #
# OPTIONS: Pass it options just like you would pass ping. In fact, if you #
# bring it up as ./checknet -h, it will output ping's help and #
# possible do weird stuff. Maybe when I learn command line #
# switches I'll fix that. #
# #
# REQUIREMENTS: perl, ping, UNIX prompt, espeak #
# BUGS: Probably many #
# NOTES: --- #
# AUTHOR: Carlos Alberto da Costa Filho, c.dacostaf (gmail) #
# VERSION: 0.11 #
# CREATED: Sun Feb 27 20:31:05 BRT 2011 #
# REVISION: --- #
#===============================================================================#