Adam Mercer adam at
Sat Jun 10 04:13:09 PDT 2000


i want to set up a script on my system that runs once a day, to clean out
temp. directories, check the filesystem and other things, but i can't work
out how i can check if the scripts already been run for that day.

i've been thinking along the lines of 'touch'ing a file after the script has
been run and then before the script is run check the datestamp of that file,
if the dates the same don't run the script if it's different run the
script - but i just can't work out how to check the timestamp.

any ideas?

cheers adam

Mail archive:
IRC access: server: port: 6667 channel: #LFS
News Reader access:
Unsubscribe: email lfs-discuss-request at and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

More information about the lfs-dev mailing list