From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27298 invoked by alias); 24 Jun 2013 07:53:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27283 invoked by uid 89); 24 Jun 2013 07:53:42 -0000 X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 Received: from li188-64.members.linode.com (HELO london.mobistar.com.au) (178.79.132.64) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 24 Jun 2013 07:53:41 +0000 Received: from london.mobistar.com.au (localhost.localdomain [127.0.0.1]) by london.mobistar.com.au (8.13.8/8.13.8) with ESMTP id r5O7qDNK030966 for ; Mon, 24 Jun 2013 07:52:13 GMT Received: (from apache@localhost) by london.mobistar.com.au (8.13.8/8.13.8/Submit) id r5O7qDYJ030965; Mon, 24 Jun 2013 07:52:13 GMT Received: from 69.164.197.125 (proxying for 150.101.201.211) (SquirrelMail authenticated user chris.wright@mobistar.com.au) by london.mobistar.com.au with HTTP; Mon, 24 Jun 2013 07:52:13 -0000 (UTC) Message-ID: <35279.69.164.197.125.1372060333.squirrel@london.mobistar.com.au> Date: Mon, 24 Jun 2013 09:10:00 -0000 Subject: Checking for running processes when running script from cron or Windows Task Scheduler From: chris.wright@mobistar.com.au To: cygwin@cygwin.com User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner-ID: r5O7qDNK030966 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: chris.wright@mobistar.com.au X-SW-Source: 2013-06/txt/msg00607.txt.bz2 I am trying to run a bash script periodically ( eg from cron or Windows task scheduler ) which needs to kill any existing instances of a background process then restart it. Unfortunately the scheduled script only seems to be able to see processes that were created in the context it is running from and not any other (cygwin) processes, background or foreground. This is occurring on Windows XP pro 32 bit. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple