• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Find Num of files in FTP Server directory

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends,
I have some problem in my project.
I need to connect to a ftp server [PARTICULAR DIRECTORY IN THAT SERVER].
i have to download all the files from that directory to a specified directory in my local machine.

The Problem, in order to check for status of the transfer. I need to know the file count [No of files in the FTP server].
If i know the count of files in the FTP server, then i can use that information for checking the number of files downloaded to my local directory .
This makes us confirm about the successful transfer of all files.
How To Find Num of files in FTP Server directory from UNIX Shell script.


2. After transfer i have to move the files in FTP server from one directory to another.
say in ftp server i have directory called source , from where i mget all the files
after transfer i have to move those files to archive directory present in the FTP server itself.

Can we write mv command there in ftp session..

3. I connect to FTP from unix box [ using .netrc information]
Please help me on this
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic