This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in $@ | |
| do | |
| ping -q -c 1 -W 1 ${1} >/dev/null | |
| if [[ $? == 0 ]] | |
| then | |
| echo $1 OK | |
| else | |
| echo $1 FAILED | |
| fi | |
| shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| /* | |
| *** Original by Patric Draper <http://www.pdrap.org/about/> | |
| *** | |
| *** Changes on 13-Mar-2004 by Msquared <http://www.msquared.id.au/> | |
| *** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am ssimpson89 on github. | |
| * I am ssimpson (https://keybase.io/ssimpson) on keybase. | |
| * I have a public key whose fingerprint is 47E6 9D63 5860 3A40 8EB5 4C21 9815 C9BC 120E D3AE | |
| To claim this, I am signing this object: |
OlderNewer