Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Just another Perl shrine
 
PerlMonks  

Win32 module for 64 bit tomcat service

by Anonymous Monk
on Aug 22, 2013 at 08:56 UTC ( #1050494=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, Greetings! I have installed tomcat-7 64 bit version on windows server 2008 R2-64 bit OS. now I want to manage my tomcat service using perl i.e. start, stop and restart options using perl scripts. I am able to stop it and start it but when I restart it, perl win32 module is not able to get the status of service. What could be possible resolution of this? Why this is happening? Any thoughts? Thanks in advance!

Comment on Win32 module for 64 bit tomcat service
Re: Win32 module for 64 bit tomcat service
by Utilitarian (Vicar) on Aug 22, 2013 at 11:00 UTC
    Hi, I believe Tomcat stores its own PID on startup when you call the apropriate shutdown.bat it kills the correct process, I would suggest you simply run syatem('c:\path\to\shudown.bat');

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
      HI, Thanks for your reply. Well, my script was perfectly working for 32 bit tomcat setup. dont know whats wrong with 64 bit setup.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1050494]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-04-20 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls