Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NLST Error in FTP

Status
Not open for further replies.

ryanc2

MIS
Apr 18, 2003
73
US
Using NLST in FTP to list the contents of a remote directory to a local file. One one box (Win2k Server), when there are no files in the remote directory, it creates a zero byte local file and everything is fine. However, when ftp'ng to a Solaris 5 system, the same NLST on an empty directory generates the 'No Such File or Directory' error and will not create the empty local file.

Any way around this? I need to create the local file so I can compare to another file to determine what to send.

Thanks in advance...
 
Why not create the empty local file before the ftp ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks for the post. That is certainly a workaround that I can implement, but I would also like to nkow why the inconsistency.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top