You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Spico Florin <sp...@gmail.com> on 2012/05/28 11:31:02 UTC

Re: How to check if a process is running or if a process is existing with prunsrv?

Hello!
>   I'm using prunsrv to create windows services. I would like to ask you if
> it is possible to query the status of a process (if it running, stopped) or
> if a process is existing. Also I would like to read the content of the pid
> file with a Java program.
>
> I look forward for your answers. Thank you.
>   Regards,
>  Florin
>

Re: How to check if a process is running or if a process is existing with prunsrv?

Posted by Spico Florin <sp...@gmail.com>.
Hello!
  Thank you for your answers. I'm getting the status of the process as long
with other information (also queryex gives me the pid)
Regards,
 Florin

On Tue, May 29, 2012 at 6:50 PM, James Wang <Ja...@infor.com> wrote:

> Florin:
> Try SC QUERY <service_name> in a command window.
>
> James Wang
>
> -----Original Message-----
> From: Spico Florin [mailto:spicoflorin@gmail.com]
> Sent: Monday, May 28, 2012 5:31 AM
> To: user@commons.apache.org
> Subject: Re: How to check if a process is running or if a process is
> existing with prunsrv?
>
> Hello!
> >   I'm using prunsrv to create windows services. I would like to ask
> > you if it is possible to query the status of a process (if it running,
> > stopped) or if a process is existing. Also I would like to read the
> > content of the pid file with a Java program.
> >
> > I look forward for your answers. Thank you.
> >   Regards,
> >  Florin
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

RE: How to check if a process is running or if a process is existing with prunsrv?

Posted by James Wang <Ja...@infor.com>.
Florin:
Try SC QUERY <service_name> in a command window.

James Wang

-----Original Message-----
From: Spico Florin [mailto:spicoflorin@gmail.com] 
Sent: Monday, May 28, 2012 5:31 AM
To: user@commons.apache.org
Subject: Re: How to check if a process is running or if a process is existing with prunsrv?

Hello!
>   I'm using prunsrv to create windows services. I would like to ask 
> you if it is possible to query the status of a process (if it running, 
> stopped) or if a process is existing. Also I would like to read the 
> content of the pid file with a Java program.
>
> I look forward for your answers. Thank you.
>   Regards,
>  Florin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org