The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Monitoring file in a directory
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Monitoring file in a directory
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-12-2005
pete_leon
Registered User
Join Date: Oct 2005
Posts: 2
find and copy -mtime -newer cp
this was the code I came up with and it does not work.
Any suggestions are much appreciated.
#!/usr/bin/ksh
Path=/home/test1
Path2=/home/test2
if find -mtime $Path -newer $Path2
then cp $Path $Path2
fi
pete_leon
View Public Profile
Find all posts by pete_leon
Find pete_leon's past nominations received
Find pete_leon's present nominations given