Using CURL to manage Tomcat

The other day I and a few of my colleges were talking about a easy way to deploy and undeploy war files from the command line like you could through the Tomcat Web Application Manager portal and being on a python kick, I started writing it in python. After an hour or two I realized that I had made this way more complex then I need to.  I had been reading theApache Tomcat 6.0 Manager App HOW-TO and I was using curl to test all the commands from localhost.

shell> curl –anyauth -u admin:password http://localhost:8080/manager/start?path=/myapp

So now after slapping myself in forehead and saying “duh!”. I decided I could write this as shell script and have it knock out in 20 minutes.

So here what I came up with tomcat-cli.sh.

–Cheers

 

4 responses to “Using CURL to manage Tomcat”

  1. Hairstyles Vip Avatar

    Have you ever thought about adding a little bit more than just your articles? I mean, what you say is valuable and everything. Nevertheless think about if you added some great pictures or video clips to give your posts more, “pop”! Your content is excellent but with pics and videos, this site could certainly be one of the best in its niche. Terrific blog!

  2. Beauty Fashion Avatar

    Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News?I’ve been trying for a while but I never seem to get there! Many thanks

  3. Appliance Repair Manual Avatar

    I constantly emailed this blog post page to all my contacts, for the reason that if like to read it after that my friends will too. http://www.kayswell.com

  4. Hairstyles Avatar

    Greetings! Very helpful advice in this particular article! It’s the little changes that will make the most significant changes. Thanks a lot for sharing! http://www.hairstylesvip.com

Leave a Reply