diff --git a/tsshbatch.py b/tsshbatch.py index 9a458a3..3b6f0be 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -20,7 +20,7 @@ CMDINCL = PROGENV + "CMDS" HOSTINCL = PROGENV + "HOSTS" -CVSID = "$Id: tsshbatch.py,v 1.210 2014/12/09 18:16:46 tundra Exp $" +CVSID = "$Id: tsshbatch.py,v 1.211 2014/12/10 15:17:26 tundra Exp $" VERSION = CVSID.split()[2] CPRT = "(c)" PROGDATE = "2011-2014" @@ -68,8 +68,8 @@ COMMANDS = 'Commands' CONSUCCESS = 'SUCCESS: Connection Established' EXECUTE = '!' -FILEGET = '-G' -FILEPUT = '-P' +FILEGET = '.getfile' +FILEPUT = '.putfile' GETFILES = 'Files To GET' HOSTSEP = '-' HOSTNOISE = '[%s]' @@ -749,7 +749,7 @@ if opt == "-K": KEYEXCHANGE = False - if opt == FILEGET: + if opt == "-G": ProcessTXRQ(val, Get_Transfer_List) if opt == "-H": @@ -759,7 +759,7 @@ PROMPTUSERNAME = True KEYEXCHANGE = False - if opt == FILEPUT: + if opt == "-P": ProcessTXRQ(val, Put_Transfer_List) if opt == "-S": diff --git a/tsshbatch.rst b/tsshbatch.rst index ff12e3a..464431b 100644 --- a/tsshbatch.rst +++ b/tsshbatch.rst @@ -514,13 +514,14 @@ tsshbatch.py -G"/etc/fstab ./tmp" -G"/etc/rc.conf ./tmp" ... -You may also put file transfer specifications into a ``cmdfile``. -This is handy when you have many to do and don't want to clutter -up the command line. Each must be on its own line in the ``cmdfile`` -and in the same form as if it were provided on the command line:: +You may also put file transfer specifications into a ``cmdfile`` via +the ``.getfile`` and ``.putfile`` directives. This is handy when you +have many to do and don't want to clutter up the command line. Each +must be on its own line in the ``cmdfile`` and in the same form as if +it were provided on the command line:: - -G /path/to/srcfile destdir # This will get a file - -P /path/to/srcfile destdir # This will put a file + .getfile /path/to/srcfile destdir # This will get a file + .putfile /path/to/srcfile destdir # This will put a file Any single- or double quotes will be removed. @@ -1193,7 +1194,7 @@ :: - $Id: tsshbatch.rst,v 1.160 2014/12/09 17:30:20 tundra Exp $ + $Id: tsshbatch.rst,v 1.161 2014/12/10 15:17:26 tundra Exp $ This document was produced with ``emacs``, ``RestructuredText``, and ``TeX Live``.