diff --git a/tsshbatch.py b/tsshbatch.py index 47bd3a4..00b8dfe 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -20,7 +20,7 @@ CMDINCL = PROGENV + "CMDS" HOSTINCL = PROGENV + "HOSTS" -CVSID = "$Id: tsshbatch.py,v 1.219 2016/01/16 16:59:34 tundra Exp $" +CVSID = "$Id: tsshbatch.py,v 1.220 2016/01/16 17:06:51 tundra Exp $" VERSION = CVSID.split()[2] CPRT = "(c)" PROGDATE = "2011-2016" @@ -765,9 +765,6 @@ for opt, val in opts: if opt == "-B": - - starttime = time.time() - PrintStdout(BANNERMSG % (BANNERSTART, time.strftime("%Y-%m-%d"), time.strftime("%H:%M:%S"))) BANNERSON = True if opt == "-E": @@ -971,10 +968,18 @@ if PWORD and not SUDOPW: SUDOPW = PWORD + ##### # Do The Requested Work ##### +# Report time statistics if requested + +if BANNERSON: + + starttime = time.time() + PrintStdout(BANNERMSG % (BANNERSTART, time.strftime("%Y-%m-%d"), time.strftime("%H:%M:%S"))) + # If we're running testmode, just report the final list of # hosts and commands that would be run