delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/22/01:22:42

X-Spam-Check-By: sourceware.org
Date: Tue, 22 May 2007 15:21:54 +1000
From: Brian Salter-Duke <b_duke AT bigpond DOT net DOT au>
To: cygwin AT cygwin DOT com
Subject: ps command
Message-ID: <20070522052154.GA396@SALTERDUKE2>
Reply-To: Brian Salter-Duke <b_duke AT bigpond DOT net DOT au>
Mail-Followup-To: cygwin AT cygwin DOT com
MIME-Version: 1.0
User-Agent: Mutt/1.5.15 (2007-04-06)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Apologies for asking this. I asked it many years ago and did not get an
answer that allowed me to progress. I can not find the earlier replies
but of course cygwin has improved since then.

I have a program that runs in the background a bit like at daemon. It is
called 'qseek'. I want to know whether it is running from a script. On
linux I run ps in the script and grep the output to see if 'qseek' is
there. On cygwin all I get is this line:-

     1688       1    1876       3644    0 1004 15:03:03 /usr/bin/perl

because qseek is a perl script. Is there any way that I can get output
of the running processes that will include the text, 'qseek'? Or can
anyone suggest a work around. I need a script to be able to find out
whether qseek is running, in order to start it if it is not, and leave
it running if it is. I am trying again to get this code working
correctly on cygwin as well as linux.

Regards, Brian.
-- 
       Brian Salter-Duke (Brian Duke)    b_duke AT bigbond DOT net DOT au 
       Post: 626 Melbourne Rd, Spotswood, VIC, 3015, Australia
 Phone 03-93992847. http://www.salter-duke.bigpondhosting.com/brian/index.htm
    Honorary Researcher Fellow, Dept. of Medicinal Chemistry, Monash Univ.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019