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:
340
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:

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?  


Thursday, 03-Dec 12:10:17 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [162] Comcast Releasing Promised Usage Meter
· [120] Avast Antivirus Has Gone Mad
· [103] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [80] Latest Consumer Reports Survey Not Kind To AT&T
· [70] Baltimore To Ban Lazy Cable Installs
· [63] Broadband Killed The Game Console
· [61] Comcast Makes NBC Universal Acquisition Official
· [55] Rogers Unveils The ISP Dream Model
· [47] ACTA: Global Three Strikes
· [42] Cable Industry's 'Adoption Plus': Altruism Or PR Stunt?
Most people now reading
· False positive in Avast! or is it real? [Security]
· Many Sites Unreachable [Rogers]
· [TWC] Audio/Video outage in Brooklyn [Time Warner Cable TV/Voice]
· Warrior tank seem underpowered these days [World of Warcraft]
· [Rant] Disrespect of PTO [Rants, Raves, and Praise]
· Quality/longevity of 15A 120V receptacles [Home Repair & Improvement]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· necessary to have a comcast net connection to retain the com [Comcast HSI]
· [ Classes] 3.2.2 Rogue [World of Warcraft]