Ambiguous command ' '

Advertisement

TheBear
Joined:
Posts:
1
Location:
Sweden

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum