From aadb11148adc6976efcda5d690a407cc743b6b3f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Nov 2012 20:53:43 +0100 Subject: [PATCH] improve output --- liveboot_testdeploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index 0b3e0c6..ef19b04 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -74,11 +74,13 @@ fi echo "Pinging $TESTSERVER..." for i in $(seq 1 60) ; do sleep 10 - echo "." + echo -n "$(date +%H:%M:%S): " if $(ping -c 1 $TESTSERVER >/dev/null) ; then - echo "$TESTSERVER pings again, so we assume it's booting now." + echo + echo "$(date +%H:%M:%S): ICMP echo reply from $TESTSERVER, so let's assume it's booting now." break fi + echo "no ICMP echo reply received." done if ! $(ping -c 1 $TESTSERVER >/dev/null) ; then figlet "Failure:" @@ -96,10 +98,10 @@ for i in $(seq 1 90) ; do echo -n "ping $TESTSERVER ok..." # check ssh FIXME if $(nc -z $TESTSERVER 22 ) ; then - echo "ok, sshd is running." + echo "ok, sshd is running at $(date +%H:%M:%S)" break else - echo "but sshd is not running." + echo "but sshd is not running at date $(+%H:%M:%S)" fi fi done -- 2.39.5