Hi guys,
I need a shell script writing that I can set up as a cron job. I thought I could do this myself, but after looking at a few tutorials I realised it just wouldnt happen any time soon!
So, I want the script to copy an image file, named in the format:
from the directory:
to the directory:
but renamed to:
so it overwrites the old one.
The idea being that today's daily usage webalizer image is copied (each day - via cron) to a directory where I can access it with an html file.
If someone could do this for me that would be grrrrrrrreat!
I need a shell script writing that I can set up as a cron job. I thought I could do this myself, but after looking at a few tutorials I realised it just wouldnt happen any time soon!
So, I want the script to copy an image file, named in the format:
Code:
daily_usage_xy.png
where: x = full year y = day of month
e.g. daily_usage_200602.png
from the directory:
Code:
/tmp/webalizer/
to the directory:
Code:
/public_html/admin/webstats/
but renamed to:
Code:
daily_usage.png
so it overwrites the old one.
The idea being that today's daily usage webalizer image is copied (each day - via cron) to a directory where I can access it with an html file.
If someone could do this for me that would be grrrrrrrreat!