1829101 Members
2719 Online
109986 Solutions
New Discussion

ftp settings

 
gary phipps
Frequent Advisor

ftp settings

Hi All,

Does anyone know if there's a way to change the output of the ls command within ftp, in that it I want just a list of filenames rather than a long listing?

Thanks,

Gary
5 REPLIES 5
Karthik S S
Honored Contributor

Re: ftp settings

ls (just file names)
ls -l (long list)

it all works with hp-ux ftp.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Thierry Poels_1
Honored Contributor

Re: ftp settings

hi,

I don't think you can customize this. ftpd does a "ls -l" if a file list is requested by a FTP client.

regards,
Thierry Poels.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
gary phipps
Frequent Advisor

Re: ftp settings

Hi Karthik,

the ls command on it's own gives the long list, that's the problem.

Regards,

Gary.
Colin Topliss
Esteemed Contributor

Re: ftp settings

What exactly are you trying to do? Are you attempting to use this list in a script?

If you are, look at using Perl, and Net::FTP.

There isn't any way of changing this (and listing files using different FTP severs will give you different results too)!
gary phipps
Frequent Advisor

Re: ftp settings

Thanks for the responses but I've found an answer - the nlist command gives just the filenames.

Regards,

Gary.