Hi all,
my need is to run particular command but only after ping google.com is successful. How do I perform it?
Hi all,
my need is to run particular command but only after ping google.com is successful. How do I perform it?
hi
you can use: ping -c 1 -W 5 www.google.de
check the return code of ping: $? = 0 success, $? = 1 fault.
for further information see: man ping
ciao
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
Bookmarks