Saturday, 20th April 2024

Comment posted Automatic restart Tomcat on Windows script via TaskScheduler daily – A command line to add / remove new Windows “Cron” like job by .

Recent comments by

Share this on:

Tags: , , , , , , , , , , , , , , , , ,

No Responses to “…”

  1. estuardo says:
    Google Chrome 56.0.2924.87 Google Chrome 56.0.2924.87 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

    Good idea, but the problem with this script is when try to start the service, i got a error “An instance of the service is already running.” because the command try to start a service when the service is pending of stopping

    View CommentView Comment
    • admin says:
      Firefox 52.0 Firefox 52.0 Windows 7 x64 Edition Windows 7 x64 Edition
      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

      Hi,

      Maybe you can do a minor modification to make it work ? 🙂

      Just add it a sleep 5 somewhere or smth

      View CommentView Comment