LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2010, 06:37 AM   #1
philipina
Member
 
Registered: May 2003
Posts: 77

Rep: Reputation: 15
How to remotely control a windows service?


Hello,

I have a java application running under Linux (Suse). My application communicates with a windows service via TCP/IP. I had multiple cases where the windows service crashed and I'm wondering if in such case there is any Linux or java tool I could use to remotely restart this Windows service.


Thanks in advance for your help,

Alain
 
Old 11-20-2010, 07:57 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Take a look at Nagios. You can monitor a remote Windows service with NSClient++ addon and restart if it die via the check_nrpe.
 
Old 11-20-2010, 11:12 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Or just do:
Code:
  Runtime.exec ("net start ..")
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remotely control a server's cron? WojtekO Linux - Newbie 1 03-18-2009 12:51 PM
Remotely restarting a service seefor Linux - Networking 3 02-15-2007 12:52 AM
Media player remotely control? Garma Linux - Software 3 04-02-2005 08:27 AM
can't access remotely to any service kunteper Linux - Networking 3 12-26-2003 08:02 AM
remotely control linux box thevariegator Linux - Newbie 23 03-21-2003 10:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration