republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Regarding moving files from FTP site to some other folder
Search Topic:
Uniqs:
332
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
SSH not working on Fedora 9 »
« Fedora 9 on sun cobalt raq4?  
AuthorAll Replies


Poornima

@troweprice.com

Regarding moving files from FTP site to some other folder

Hi,
I am new into Unix and I have 2 files A & B coming into my FTP site on 2nd day of all months.
The files are in the format
A_YYMMDD_HHMISS Ex: A_081102_180708

I need to rename the filenames to Product & Person and push to some other machine.Also the files won't be deleted after moving from FTP site.So all files will be accumulated in the same folder of FTP site.Can anyone help me in doing the Korn shell script for the same?

Thanks a lot,
Poornima


Sir Meowmix III



Look at using ncftpget and ncftpput



Sir Meowmix III



reply to Poornima

Should read as:



Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL
clubs:
·Embarq

reply to Poornima
Another tool that may be useful if these file come in at somewhat predictable intervals is cron. You can take the Sir Meowmix III's script and save it as a simple text file with a .sh extension and then have cron run this at the intervals.
cron is a scheduler that runs a certain command at a given interval. Type the following in a command line to learn more:
man cron
man crontab
Or read those files at »manpages.ubuntu.com/manpages/int···ron.html and »manpages.ubuntu.com/manpages/int···tab.html These are Ubuntu's man pages, your version of Unix may have different info, but the overall usage should be similar or identical so Ubuntu's man pages are probably valid for your distro to.
--
"Padre, nobody said war was fun now bowl!" - Sherman T Potter

»www.cafepress.com/maxolasersquad

»maxolasersquad.com/

»maxolasersquad.com/network/ My DSL Network Guide

»myspace.com/mlsquad


Poornima

@troweprice.com
reply to Poornima
Thanks a lot Friends!!


Poornima

@troweprice.com
reply to Poornima
Hi,
While executing the above script, I am getting a warning " ncftpget: not found".Does any inputs on this?


Sir Meowmix III

@windstream.net
reply to Poornima
You must install ncftp. I have no idea what variant of UNIX you are using so I cannot comment with any specific instructions.
-
Forums » Tech and Talk » OS and Software » All Things UnixSSH not working on Fedora 9 »
« Fedora 9 on sun cobalt raq4?  


Monday, 09-Nov 16:17:37 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [54] VoIP Over 3G Still Not Working For iPhone
· [30] Verizon Keeps Swinging At AT&T
· [26] Bill Would Force ISPs To Block Financial Scams
· [14] Mediacom Hints At 50, 100 Mbps Speeds
· [10] Clearwire To Get Another $1.5 Billion
· [8] 15 States Have Now Gotten Broadband Mapping Money
Most people now reading
· Divorce advice... [General Questions]
· My cat is reluctant to exercise. [General Questions]
· How in the world am I going to get into college? [General Questions]
· Google Has Acquired Gizmo5 [VOIP Tech Chat]
· Know when to run! [Home Repair & Improvement]
· [ TV] Bell TV raising rates on January 1st 2010 [Bell Canada]
· [WIN7] Which Services in Win 7 Have You Turned Off? [Microsoft Help]
· 60 Minutes piece on cyber security last night [Security]
· Windows 7 boot manager editing questions [Microsoft Help]
· Your ideal heroic 5-man class comp! [World of Warcraft]