v1.0
This commit is contained in:
parent
0758afc549
commit
8310cc4c6f
2 changed files with 20 additions and 2 deletions
17
pingu/README.md
Normal file
17
pingu/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# pingu
|
||||||
|
|
||||||
|
## wtf is it?
|
||||||
|
|
||||||
|
pingu is a small script that pings several IPv4 given as arguments to check whether they're reachable or not.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./pingu <IPv4> ...
|
||||||
|
```
|
||||||
|
|
||||||
|
## The future
|
||||||
|
|
||||||
|
Some ideas I have to improve this script:
|
||||||
|
- handle IPv6
|
||||||
|
- colored output
|
||||||
5
wgtest → pingu/pingu
Normal file → Executable file
5
wgtest → pingu/pingu
Normal file → Executable file
|
|
@ -1,10 +1,11 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
USAGE="usage : wgtest <IP address> ..."
|
USAGE="NOOT NOOT
|
||||||
|
USAGE : ./pingu <IP address> ..."
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "$USAGE"
|
echo "$USAGE"
|
||||||
return
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for host in $@; do
|
for host in $@; do
|
||||||
Loading…
Reference in a new issue