Search code examples
linuxchmodsystem-administrationubuntu-server

Would running a certain script every minute via cron be detrimental to anything?


This gets run every minute:

cd /var/www/html/[redacted] && find . -exec touch -a -m -t 200001010000.00 {} \;
tac /log/[redacted] > /var/www/html/[redacted]
chmod 775 -R /var/www/
chown www-data:webadmins -R /var/www/
exit 0

I feel like that's bad, but I don't really know.


Solution

  • You will be changing quite a bit of inodes every minute and generating I/O due to the concatenations. So I think it all depends on the number of files/dirs being operated on.