X-Recipient: archive-cygwin@delorie.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:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=uA/kGki64ZPvTgRKfraGoxU3qqDtQhACuOtpN79j36Q
	uHs8hH49Cyq2wDV0aCOq9NnR7ZlcyGset23JML9A2lHcJKHqR0T25Ic6raeUFwgp
	uV/pESGVJZ3vYD2OEYiDltoIhfkR39Fs6gIU96tLERf7f/LBiUgvI81D3Ocs/S/c
	=
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:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=kRfNdBnnmwk5x2ujrU93CNlshU0=; b=VgG9TQewy7ukyR0Uy
	iqeXJjv1Z0eSlFuDfe2s4zyrcaWCd1PSLu6qNWN7rJidrcdOUOPDUhyQKdWM8yv2
	vGyf/p5U7sa3xxt2kCfg+sz0iJvXRsmjwRUngQ2MWRRZJH8145SBZUn3Nq3RXsIY
	w2GjNREqhbETUCejX4IqYHubaU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2
X-HELO: konqorde.nl
Message-ID: <52FA97F5.8010108@mailme.ath.cx>
Date: Tue, 11 Feb 2014 22:36:53 +0100
From: bartels <bartels@mailme.ath.cx>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Launch a windows application from crontab
References: <1391856433944-37762.post@n5.nabble.com> <4836F9C5.10603@cygwin.com> <1391856433922-106108.post@n5.nabble.com> <1221091821.20140208232246@mtu-net.ru> <1392012834304-106171.post@n5.nabble.com>
In-Reply-To: <1392012834304-106171.post@n5.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 02/10/2014 07:13 AM, carl wrote:
> I feared it :( What possibilities remain to me with a win7 system? The background for my problem is a windows application that sometimes
> crashes silently (it is still open but doesn't do what it should) and had to be restarted. A big amount of Voodoo sounds interesting ;-)
> but perhabs I should simply use windows scheduled tasks?


I have many processes that I run in a service.

Similar to your situation, some of these fail periodically,
each for a different reason.

My solution is to run them in a loop, using e.g. bash:

 while [ 1 ] ; do myprog ; done

A separate monitor program, running in its own service,
periodically checks each 'myprog' to see if it is still responsive.
If it is not, the relevant process is simply killed, and the
daemon reincarnates.

For myself, I would not consider windows scheduled tasks.


-- Bartels

--
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

