You do this with the find command use the -mtime > > On viernes, ener 16, 2004, at 03:53 Europe/Madrid, Brian Medley wrote: > >> On Thu, Jan 15, 2004 at 08:34:54PM -0600, Bert Knabe wrote: >> >>> I have a relatively simple task, but little programming knowledge. I >>> need to have a folder checked and files copied to another folder. I >>> originally planned to do this in Applescript, but Applescript has >>> proven less than effective. I am not looking for someone to write a >>> script for me, but whether or not this is doable as a shell script, >>> or >>> should I pull out my (very) rusty C++, or even learn a little Perl. >>> >>> I have an Xserve w/XServeRAID running OS 10.2.8. I need to either >>> have >>> a folder watched, and when new files are added, copy them to another >>> folder on a different volume, or have the folder checked every so >>> often >>> and files added since the last check copied to another folder on a >>> different volume. >> >> I'd use cron+perl because a) I know perl and b) I don't know of a way >> to >> roll over a bunch of files in a shell script and grab out the ones >> that >> were created after a certain time. >> >> -- ~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/ (___) \|/ >> _,.-=~'`^` >> @~./'O o`\.~@ >> "Knowledge is Power" /__( \___/ )__\ >> *PPPFFBT!* >> -- Francis Bacon `\__`U_/' >> _,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|' >> ^^`'~=-.,__,.-= >> ~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.- >> =~'`^` >> >> ---------- >> Check out the Mac OS X email list FAQ >> http://www.themacintoshguy.com/lists/X.html >> >> To unsubscribe, E-mail to: <X-Unix-off at lists.themacintoshguy.com> >> To switch to the DIGEST mode, E-mail to >> <X-Unix-digest at lists.themacintoshguy.com> >> Need help from a real person? Try. >> <X-Unix-request at lists.themacintoshguy.com> >> >> ---------- >> $14.99 Unlimited Nationwide Mac Dialup and Mac Web Hosting from your >> Mac ISP >> Serious Mac Internet Solutions From NineWire! >> http://macinternetaccess.com >> >> DVIator | Run Dual ADC displays on your G4 or just one on an older >> Mac! >> Dr. Bott | <http://www.drbott.com/prod/DVIator.html> >> >> Support | Support this list by clicking here before you buy! >> this List | http://www.themacintoshguy.com/support.html >> >> OS X News, Dr.Mac, Forums, Tutorials, Tips, Hints, FAQ?s - >> http://www.osxfaq.com >