Originally Posted by hruday
I am using centOS server with two instances of JBOSS running in it.
So i need a shell script to delete log files older than x days in each instance. for example:
ps -ef | grep jboss
i get two instances like say
***And shell script should also delete log files automatically when a new instance is created.
By default logs are saved in /home/mypro/jboss-as-7.1.1/standalone/logs/ /home/newpro/SAAS-jboss-as-7.1.1/standalone/logs/
Read the "Question Guidelines" link in my posting signature. We will be happy to HELP you, but we are NOT going to write your script FOR YOU. You are essentially asking for a handout, and have shown no effort of your own. There are many thousands of easily-found scripting tutorials to help get you started.