Hi,
I need someone to build me this simple script:
Help command:
How to start tomcat : server tomcat7 start
How to stop tomcat : server tomcat7 stop
unzip ( already installed )
Script will be run as cron job later.
Scan /home/excalibur/release/ for any *.war files.
if found wars, copy them to /release directory.
stop tomcat ( wait for 5 sec after running so that it fully stops )
for each war
rm -rf war_name_old ( we deleting these directory if they exist )
rename war directory ( for example at this point there is a [login to view URL] and also api/ directory. directory has the same name as the war u just uploaded . )
so we want to rename api/ to api_old
- them mkdir api again.
- them run unzip [login to view URL] inside api/ (it is faster unzip manually then to have tomcat do it )
we do this for each war.
once done , start tomcat.
Should be simple for a unix admin.
I am a software developer with expertise in UNIX and have currently completed my current assignment after delivering my project successfully. As I am free this week so I will complete the job in 1-2 day with full dedication. You can trust on my workaholic attitude.