"ls" and "put" are not shell commands - they are subcommands to the sftp
(or cozsftp) shell command.
>From linux, you would typicall use a Unix "here" document to do this;
something like:

sftp  <opts> -b- [email protected] <<EOF
ls /+mode=text...
put /local/file //HLQ.GDG(+1)
EOF

If you have a question about using Co:Z SFTP, please ask it our our Co:Z
SFTP forum:
http://dovetail.com/forum
(Note: The sophisticated anti-spammer registration code required to create
an id is on our support page :-)

Note: if your company has an Enterprise License and Support agreement,
please open a support ticket.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Tue, May 2, 2017 at 3:51 PM, Ron Thomas <[email protected]> wrote:

> Hi Kirk
>
> Here is the script  & the error message i am getting . Kindly let me know
> is there anything wrong here ?
>
>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
> put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
> quit
>
> ls: cannot access /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100: No
> such file or directory
> ./test1.sh: line 2: put: command not found
> ./test1.sh: line 3: quit: command not found
>
> Thanks
> Ron T
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to