The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
compare files in two directories and output changed files to third directory bkeep Shell Programming and Scripting 4 08-26-2009 06:58 AM
Back up of recent modified files lathish UNIX for Advanced & Expert Users 1 02-07-2009 01:45 PM
Get Files from ftp which are uploaded recent week narramadan Shell Programming and Scripting 1 09-27-2007 08:05 AM
To keep only the most recent files *Jess* Shell Programming and Scripting 1 07-26-2007 11:11 PM
delete files except most recent ST2000 Shell Programming and Scripting 5 06-21-2005 02:33 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
RApds RApds is offline
Registered User
  
 

Join Date: Nov 2009
Location: Northamptonshire, UK
Posts: 3
script to ftp recent changed files

I am trying to write a script to ftp all files/directories changed in a 24hour period to another AIX server. I have wrote a script to generate a list of all files changed within a 24 hour period but dont know how to then ftp these to another server. How do incorporate ftp into this script?

Code:
#!/bin/ksh

PROG=`basename $0`
DATE=`date '+%d-%m-%y:%T'`
LOG=/var/logs/$PROG.$DATE

exec > $LOG 2>&1

/usr/bin/logger -p user.info "[$PROG on `hostname`] starting"

# Find all files changed within the last 24hours excluding /proc
find / -name proc -prune -o -ctime 1 -ls > $LOG


/usr/bin/logger -p user.info "[$PROG on `hostname`] completed successfully"

exit 0

Last edited by zaxxon; 2 Weeks Ago at 07:14 AM.. Reason: use code tags please
  #2 (permalink)  
Old 2 Weeks Ago
Padow Padow is offline
Registered User
  
 

Join Date: Dec 2008
Location: Maryland
Posts: 178
rsync or rdist may be better tools to do what you are looking for.
  #3 (permalink)  
Old 2 Weeks Ago
RApds RApds is offline
Registered User
  
 

Join Date: Nov 2009
Location: Northamptonshire, UK
Posts: 3
Thumbs up

Thanks. I've never heard of rsync, but after looking it up on wikipedia it looks like it will do everything I need. Cheers.
Sponsored Links
Reply

Bookmarks

Tags
aix, find, ftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0