1

Bash script to copy apache log files to client directory

view story
linux-howto

http://www.unix.com – Our Apache log files are written to a location on the server that we as clients have no access. Don't ask. Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this way. I'm hoping to come up with a bash script the admin will run as a cron job on the second day of each month to transfer the gzipped files automatically. He tried using this script, but it ignores the first nine days of the month, and sometimes the last day, too: Code: #!/usr/local/bin/ (HowTos)