Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: bakedjake
I know I can use:
gzip -c --best index.html > index.html.gz
to create the .gz file _and_ keep the original.
What's the proper command line way to run that on each index.html file in all the subdirectories? There's a way via find, right? Can it be done from the command line, or do I need a script?
Also, if I run the cron as a user other than root (i.e. my apache user) will the resulting gzip be owned by apache or do I have to chown it?
Thanks for any advice!