Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Use ping in script (linux, bash)
tolikpunkoff
Oct 5th, 2022
1,628
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
#testping
# $1 - IP or URL address
ping
$1
-c
3
>/
dev
/
null
2
>/
dev
/
null
if
[
$?
-eq
0
]
;
then
echo
"Pinging!"
else
echo
"Not pinging!"
fi
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
short story jade
56 min ago | 89.71 KB
Untitled
1 hour ago | 13.42 KB
Untitled
3 hours ago | 9.47 KB
codex-vs-uy-ip-networks
5 hours ago | 3.50 KB
Untitled
5 hours ago | 13.92 KB
Untitled
6 hours ago | 0.76 KB
Untitled
6 hours ago | 1.42 KB
Untitled
6 hours ago | 1.00 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!