Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Ambiguous command ' '

That's the stray double quote. It should not be there. Or it should probably be at the end of the previous (open) line.
TheBear

Ambiguous command ' '

When running an automated script I get the following:
2022-04-29 10:45:03.824 Script: Ambiguous command ''. Possible matches are: !, ascii, binary, bye, call, cd, checksum, chmod, close, cp, dir, echo, exit, get, help, keepuptodate, lcd, lls, ln, lpwd, ls, man, mget, mkdir, mput, mv, open, option, put, pwd, recv, rename, rm, rmdir, send, session, stat, symlink, synchronize
. 2022-04-29 10:45:03.824 Script: Failed
. 2022-04-29 10:45:03.824 Script: Exit code: 1
. 2022-04-29 10:45:03.824 Closing connection.
. 2022-04-29 10:45:03.824 Sending special code: 12
. 2022-04-29 10:45:03.824 Sent EOF message


My winscp.bat file looks like this
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /log=C:\Script\ftp_pipechain\log\ftplog.txt /script=C:\Script\ftp_pipechain\pipechain_commands.txt

My command file:
echo
open sftp://company_ID12345:********@sftp.company.com:2222/ -hostkey="ssh-rsa 2048 ***********************
"

cd /prod/incoming
mput \\server\{path}\*.edi
exit

Any ideas?