diff --git a/tsshbatch.py b/tsshbatch.py index 35214f2..8cd2b15 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # Non-Interactive ssh Connection -# $Id: tsshbatch.py,v 1.104 2010/12/14 19:31:11 tundra Exp $ +# $Id: tsshbatch.py,v 1.105 2010/12/14 19:47:21 tundra Exp $ import paramiko import sys @@ -10,9 +10,9 @@ # Constants And Literals ##### -PADWIDTH = 35 +PADWIDTH = 30 FAILURE = "Command Failed" -SEPARATOR = " ---> " +SEPARATOR = " ---> " USAGE = "Usage: sshlogin.py username password hostname command" @@ -61,8 +61,7 @@ # Report attempt -hostid = host + SEPARATOR -PrintStdout(hostid + (" " * (PADWIDTH - len(hostid))), TERMINATOR="") +PrintStdout(host + (" " * (PADWIDTH - len(host))) + SEPARATOR, TERMINATOR="") # Connect and run the command, reporting results as we go