Dan Anderson <[EMAIL PROTECTED]> wrote: > On Wed, 2003-12-10 at 09:42, Bob Showalter wrote: > > usef wrote: > > > > Hi, > > > > FTP or HTTP? > > > > > > > > > > HTTP, but I want to know the method for FTP as well. Thanks -u > > > > I think that will work for FTP as well. Give it a try. > > If I type ls when I FTP into somewhere I get a listing of files and > size. I would guess either: > > a) ls is a command in FTP > b) there is a corresponding command in the FTP module you are using.
In standard ftp, you can do 'size'. The Net::FTP for perl has a corresponding command also. When you are in standard ftp, just type ftp> size yourFile and it will return something like ftp> size yourFile 213 12523 where 213 is the message number and (in my case) 12523 is the size of the file. -Jeff __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>