delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/24/03:54:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=cAF
wYNT78tWPBFGwgsLjzScle1aUYvLjKNkTSJChWmmh4p0zZJ45V8D3i8F1HCtpuQ3
6nojux5kCaLsPoSs3pOeNMQe9S1mg4mGG1NBi+VmZj9M7JcGXQZXAKKla2+v5Msp
JiJPgy3ET06OF3XHCx8PTVcxvBEcunY8GPcITdbo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; s=default; bh=Z//SDlVAt
9VZ+ZvWjFlirQ85wSc=; b=mKgE440xcq+ehNBtNLLBF8qCiDkYi4M20WV+mrP+P
G6ZSvFeXCls0Hcm2ztiLUQRbq7b/BFxxBpjP5EpD+vwUMXCjunm8PzyMOPW92lHK
/cREKCLODh3UVe8vLUAlge3MIrt8SJFAmvkrmZ3i4yjJoH+CNkPn3yba0ey0NoHl
/Q=
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
X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Message-ID: <35279.69.164.197.125.1372060333.squirrel@london.mobistar.com.au>
Date: Mon, 24 Jun 2013 07:52:13 -0000 (UTC)
Subject: Checking for running processes when running script from cron or Windows Task Scheduler
From: chris DOT wright AT mobistar DOT com DOT au
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
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 DOT wright AT mobistar DOT com DOT au

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

- Raw text -


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