Ok, so I have been trying to find any tutorials or anything in order to try and create a script for what I want my crontab to do, but I can't find any. So if anyone can answer my question, or refer me to somewhere that can answer my q that would be AMAZING!!
So I'm using Tomcat 5 and I want to have the script so that I can rename the current catalina.out file with the current date (Such as catalina_10_27_2008.out), and then create a new catalina.out file where all of the new logs would go into.
My current script looks something like this:
/sbin/service tomcat5 stop
/sbin/service tomcat5 start
I want to place the whole moving and creating in between the start and stop so that I have a clear indication of when things are happening.
If it helps, the crontab is set so that it updates daily.
Any help would be fantastical!
Thanks
