Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 11-18-2005, 11:01 AM   #1
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 @

Old 11-18-2005, 11:15 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,675

Rep: Reputation: 239Reputation: 239Reputation: 239
Have you looked at the rsync command? That's what you would typically use for this type of task.
Old 11-20-2005, 02:54 AM   #3
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?


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 06:40 PM
Simple bash script help, grabbing part of a string colabus Linux - Newbie 3 04-25-2005 10:42 AM
Getting the first part of a filename in a BASH script trevelluk Programming 3 02-15-2005 02:06 AM
Shell script to copy file name with part of directory Transition Linux - General 5 01-18-2005 06:40 PM
Making shell script a part of linux image mayureshchitale Linux - Newbie 1 07-06-2004 02:00 AM > Forums > Linux Forums > Linux - General

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

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