Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

plink truncating commands

4 views
Skip to first unread message

Phil Hibbs

unread,
Nov 1, 2011, 11:58:17 AM11/1/11
to
I'm using plink.exe on WinXP to run some commands on Z/OS BASH. My
commands are interspersed with echo commands so that I can parse the
output and work out what is where. The first dozen or so commands run
fine, but then one of them gets truncated. For example:

echo :end_logdetail:
echo Job Name : TfmMigration
echo :jobinfo:

What happens:

user@host:/dev> echo :end_logdetail:
:end_logdetail:
user@host:/dev> echo Job Name : Tf
Job Name : Tf
user@host:/dev> echo :jobinfo:
:jobinfo:

I just checked where in the input file the error occurs, and it's
exactly 4444 bytes in, on line 116 (so it's done 115 successful
commands before it goes wrong). The command I'm using is: Code:

plink -batch -pw xxxx user@host < "c:\dev\telnetcmd.txt" > "c:\dev
\telnetout.txt"

The telnetcmd.txt is just a DOS text file with an "exit" command at
the end.

Any idea why one of my commands is being truncated in this way?


Phil.

Phil Hibbs

unread,
Nov 1, 2011, 1:36:42 PM11/1/11
to
I've solved my own problem by passing the commands file with -m
instead of <

Phil.
0 new messages