LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-18-2005, 10:01 AM   #1
ceph
LQ Newbie
 
Registered: Jun 2003
Location: New York
Distribution: gentoo 2006; mac osx server
Posts: 16

Rep: Reputation: 0
script part 2


So I thought I could do it. I work for a media company, first I'm an artist, then I'm a net admin, so my expertise is not in this area. I need to write a script that will ftp new pdf files. Now the trouble is that in this directory there are 27,000 files already, and everyweek I need to run this script, so that it will upload to our server only the files added to the directory since the last time it was run. I have nsftp and ncftpput for the ftp part, and the trick I can't figure out is how to tell the script which files are the new ones. Some sort of file output of the date or something. Anyone willing to help here?

e-mail if you wish-- root.ryan @ gmail.com

-ryan
 
Old 11-18-2005, 10:15 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,615

Rep: Reputation: 226Reputation: 226Reputation: 226
Have you looked at the rsync command? That's what you would typically use for this type of task.
 
Old 11-20-2005, 01:54 AM   #3
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Are you copying from on Linux machine to another Linux machine? Are you using sftp or scp?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_security blocking part of my PHP script E-Oreo Linux - Security 3 09-27-2005 05:40 PM
Simple bash script help, grabbing part of a string colabus Linux - Newbie 3 04-25-2005 09:42 AM
Getting the first part of a filename in a BASH script trevelluk Programming 3 02-15-2005 01:06 AM
Shell script to copy file name with part of directory Transition Linux - General 5 01-18-2005 05:40 PM
Making shell script a part of linux image mayureshchitale Linux - Newbie 1 07-06-2004 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration