Topic "501 Invalid number of arguments MLST when run a simple GUI generated script"

Author Message
egabriel
[View user's profile]

Joined: 2017-05-31
Posts: 2
Hello I am new to scripting for WINSCP.
I am able to connect to my FTP server through the GUI and download files through the GUI.
Taking the advice of the documentation I used the GUI to generate a very simple script and I ran it from the command line.
The Script will connect me to the Server but when it tries to execute the "get" command I get this message in the log file

< 2017-05-31 12:14:06.319 257 "/users/Eliese Gabriel/reas_listingtrends" is current directory
< 2017-05-31 12:14:06.319 Script: /users/Eliese Gabriel/reas_listingtrends
> 2017-05-31 12:14:06.319 Script: lcd C:\Users\BMG\Documents\WINSCP
< 2017-05-31 12:14:06.319 Script: C:\Users\BMG\Documents\WINSCP
> 2017-05-31 12:14:06.319 Script: get cbsa_zip_apr.txt
. 2017-05-31 12:14:06.319 Listing file "cbsa_zip_apr.txt".
. 2017-05-31 12:14:06.319 Retrieving file information...
> 2017-05-31 12:14:06.319 MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
2017-05-31 12:14:06.366 501 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Could not retrieve file information
< 2017-05-31 12:14:06.366 Script: Can't get attributes of file 'cbsa_zip_apr.txt'.
< 2017-05-31 12:14:06.366 Could not retrieve file information

< 2017-05-31 12:14:06.366 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Script: Failed
. 2017-05-31 12:14:06.366 Script: Exit code: 1
. 2017-05-31 12:14:06.366 Disconnected from server

I have attached the VERY SIMPLE script... what really silly mistake am I making?
testCoreLogicForForum.txt (512 Bytes) [Download]

Description: This is the script minus the connection data

Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
It's probably a server-side bug.

What FTP server is that?

I had a similar (if not identical) report recently:
https://winscp.net/forum/viewtopic.php?t=24830
egabriel
[View user's profile]

Joined: 2017-05-31
Posts: 2
martin wrote:
It's probably a server-side bug.

What FTP server is that?

I had a similar (if not identical) report recently:
https://winscp.net/forum/viewtopic.php?t=24830


It is the ftp site: ftp.corelogicreas.com
I suppose the next step would be to try to connect to a different server using this same very simple script....
Is there any other command besides "get" that would work for this server?
Am I better off trying .NET?
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
egabriel wrote:
I suppose the next step would be to try to connect to a different server using this same very simple script....

Yes. Or avoid using spaces in file/directory names.

Quote:
Is there any other command besides "get" that would work for this server?
Am I better off trying .NET?

WinSCP just cannot work with this server, if there are spaces in the paths.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License