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
Uniqs:
337
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?  

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



Re: Regarding moving files from FTP site to some other folder

Look at using ncftpget and ncftpput


Sir Meowmix III




Should read as:


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

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
Thanks a lot Friends!!

Poornima

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

Sir Meowmix III

@windstream.net
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, 30-Nov 02:31:03 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
· [124] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [82] Weekend Open Thread
· [80] TiVo Sees Record Customer Losses
· [79] Verizon CEO: Hulu Will Be Dead Soon
· [69] In-Flight Internet Headed For Bumpy Landing?
· [63] Thanksgiving Open Thread
· [41] ICANN Slams DNS Redirection
Most people now reading
· Are GPS's better today? [General Questions]
· Is Easynews down? [Filesharing Software]
· Windows 7 boot manager editing questions [Microsoft Help]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Considering Leaving Vonage, who should I Consider? [VOIP Tech Chat]
· Grey Cup on the Web? [Canadian Chat]
· RG Firmware update to VDSL2 this morning [AT&T U-verse]
· [ PVP] 3.2 DK PvP D/W Spec... [World of Warcraft]
· Help with an old Photograph [Avatar/Graphics Help]
· Netgear WNDR3700 [Comcast HSI]