3 ms·
I call this one sshping. while sleep 0.1; do nc -w 1 -z host 22; done Useful when waiting for systems to boot.
by INTPenis 12y ago
I call this one sshping.
while sleep 0.1; do nc -w 1 -z host 22; done
Useful when waiting for systems to boot.
- lloeki 12y agoAdd this line to (vixie) cron: @reboot /bin/date | /usr/bin/mail -s "$(/bin/hostname) booted" root@example.com If you don't want to configure postfix as a smarthost (which is not that hard and recommended if only to have mail queued for retry), use ssmtp.
- stevekemp 12y ago$ until-success ssh ... If you have my sysadmin-utils installed: https://github.com/skx/sysadmin-util https://github.com/skx/sysadmin-util