Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Command to touch all files in home directory bresso msg:3272304 7:51 am on Mar 6, 2007 (gmt 0) Hello,
I'm trying to update the creation date of all files within a directory, and set the command in a cronjob.
touch /public_html/* but it's not working.
Can you guys please help me and let me know what exactly I need to use for this command to work, and so when set in a cronjob.
Which one would I need to use to only update the creation date of .shtml files?
I hope this makes sense... I feel bad being stuck with such a simple thing. Thank you!
phranque msg:3272465 11:38 am on Mar 6, 2007 (gmt 0)
that looks like correct syntax and should work.
most likely you have a file owner/permission problem.
the cron job probably does not have write access to the /public_html directory. bresso msg:3272913 6:47 pm on Mar 6, 2007 (gmt 0)
Would there be another way to do it? phranque msg:3273412 2:18 am on Mar 7, 2007 (gmt 0)
I tried: touch /public_html/* but it's not working.
what does it do?
did you record the error message? what is the user and group of the cron process vs the group and owner of the directory and files? what are the permissions on the directory and files?
you can't do it without owning a piece of it or getting permission...