This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ps command
- From: Brian Salter-Duke <b_duke at bigpond dot net dot au>
- To: cygwin at cygwin dot com
- Date: Tue, 22 May 2007 15:21:54 +1000
- Subject: ps command
- Reply-to: Brian Salter-Duke <b_duke at bigpond dot net dot au>
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@bigbond.net.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/