Paste-bin.xyz
Archive
Sign In
Login
Register
Username
Current Password
Keep me signed in.
Username
Full Name
Email
New Password
BASH
87
pingstats bash
Guest on 16th March 2023 12:18:11 AM
#!/bin/bash
#
# send a SIGQUIT to all the pings currently running, causing them to
# dump their statistics
#
for
each
in
`
ps
aux
|
grep
" ping "
|
grep
-v
grep
|
awk
'{print $2}'
`
;
do
kill
-QUIT
$each
;
done
;
Raw Paste
#!/bin/bash # # send a SIGQUIT to all the pings currently running, causing them to # dump their statistics # for each in `ps aux | grep " ping " | grep -v grep | awk '{print $2}'`; do kill -QUIT $each; done;
Login
or
Register
to edit or fork this paste. It's free.