Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C24969203 for ; Wed, 30 May 2012 09:46:42 +0000 (UTC) Received: (qmail 53313 invoked by uid 500); 30 May 2012 09:46:41 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 52373 invoked by uid 500); 30 May 2012 09:46:38 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 52340 invoked by uid 99); 30 May 2012 09:46:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 09:46:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of spicoflorin@gmail.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-lpp01m010-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 09:46:30 +0000 Received: by lahg1 with SMTP id g1so3883806lah.30 for ; Wed, 30 May 2012 02:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UjMtlqMMoeTHp3oxdK/XUnpcaNM/rrRGXXCC9idkaaM=; b=q7sA9bfWu/GWEit6M+IxPKUN1hqnRemc6xwAIJ2NAOxvYbkQ4asEj4JMDeHLPPkBTY cSn1KBC/AesulXZlaJyUM8GS84rQNMZzs49XmN+uUiqsjW107lIGh7E0KmY+T+VsDG5T h6n7w9/nS2hoUV3H0jJ7t1pqraijHjzIfvPtO9YwPk7pBymiMdoIVP4wH1maGaQYjugH as/bOZvu/ttZC8arscbXZW9v3FJFk4wLzo4CEkjMCBJqQaYlRCR9pgKXZ/iQLEUPP5DV etwFToP6kD91qfd3auggGcMPjGZsAs6GYxE2QKyPGBoMR3O4seSNmrTHEtzpRhj4HZla 9iaQ== MIME-Version: 1.0 Received: by 10.112.47.231 with SMTP id g7mr6653554lbn.29.1338371170069; Wed, 30 May 2012 02:46:10 -0700 (PDT) Received: by 10.152.134.82 with HTTP; Wed, 30 May 2012 02:46:10 -0700 (PDT) In-Reply-To: <788314C6235F5C45A717DD34D68872BB036253@USALWEXMBX1.infor.com> References: <788314C6235F5C45A717DD34D68872BB036253@USALWEXMBX1.infor.com> Date: Wed, 30 May 2012 12:46:10 +0300 Message-ID: Subject: Re: How to check if a process is running or if a process is existing with prunsrv? From: Spico Florin To: Commons Users List Content-Type: multipart/alternative; boundary=bcaec554d4582b6e2b04c13dd23e --bcaec554d4582b6e2b04c13dd23e Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Florin: > Try SC QUERY 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 > > --bcaec554d4582b6e2b04c13dd23e--