FTP problem

Hi all,

I am ftp'ing from HP-UX 11.0 to an AS400 server. If I do an 'nlist' command on the remote AS400, a listing of files is produced to the screen as you would expect. I then try to bring a listing to the local HP-UX server using 'nlist . localfile.txt'. I get the following response:

ftp> nlist . localfile.txt
output to local-file: localfile.txt? y
200 PORT subcommand request successful.
501 File must be specified by library/file.member.
ftp>

The listting is not brought back to the local HP-UX machine. My main problem I knowing whether this is a UNIX or AS400 issue. Can anyone give me any pointers please?

Many thanks :confused:

The ftp protocol does not guarantee that "." will be interpreted as the current directory. Maybe "nlist * localfile.txt" will work for you.

Yes, that was the problem. nlist <directory> localfile.txt worked.
Thanks Perderabo :slight_smile: