Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hostup() {
- if (( $# != 1 )); then
- echo "Usage: hostup HOSTNAME"
- else
- until $(which ping) -W1 -c1 ${1} > /dev/null; do sleep 5; done && $(which say) "${1} is up"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement