I am trying to rotate my Apache logs using Cron and the following shell
script:

# /bin/sh

mv /var/log/httpd/access_log /users/admin/logs/
apachectl restart

This script is set to 755 and is being executed by the root crontab. The
first line is executing correctly, the log file is moving out of
/var/log/httpd/ to /users/admin/logs/ but apache is not restarting.

This may seem OT for this list, but I figure if someone can either shed some
light on this or provide me a Perl example I'd be right on topic.

TIA
---------------------------------------
Jeremy Schwartz                Starmark
Interactive Developer
[EMAIL PROTECTED]        954-761-1600


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to