Computing.Net > Forums > Unix > ftp script issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ftp script issue

Reply to Message Icon

Name: hoogcg
Date: January 20, 2005 at 07:32:22 Pacific
OS: HP-UX
CPU/Ram: Not relevent
Comment:

Here's my scenario:
Through ftp, I need to log into a remote machine and do the following:
- cd to the most recently created subdirectory under the one that I'm placed in when I log in to the machine.
- get all the files in that subdirectory only

It's figuring out how to cd to the correct subdirectory that is the real problem.
Any insights are appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: mdhmi21
Date: January 22, 2005 at 12:19:10 Pacific
Reply:


This is going to be difficult with FTP. What exactly are you trying to do? There are probably better alternatives. Rsync for example.

Mark



0

Response Number 2
Name: Mukesh Kesharwani
Date: January 24, 2005 at 04:04:21 Pacific
Reply:

Hi.
Although what u r trying to say is not very difficult by If I am at you position I will use this approach In place of
- cd to the most recently created subdirectory under the one that I'm placed in when I log in to the machine. what I will do I will create an script which will do the following task through the cron job
Create the soft link of the most recently created subdirectory in the default FTP logging directory.

Then use the ftp with ftp script to get the files placed in this directory.

Mukesh Kesharwani
CCNA, SCSA, CUA,CNA, MCSE,MCP+I,CCNSE,Certified HIPPA Security Consultant

www.keekar.com


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ftp script issue

UNIX FTP Scripting www.computing.net/answers/unix/unix-ftp-scripting/5999.html

adding date to ftp script...urgent www.computing.net/answers/unix/adding-date-to-ftp-scripturgent/5355.html

Deleting old files using ftp script www.computing.net/answers/unix/deleting-old-files-using-ftp-script/4257.html