delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/11/16:37:25

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: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 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
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 AT mailme DOT ath DOT cx>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Launch a windows application from crontab
References: <1391856433944-37762 DOT post AT n5 DOT nabble DOT com> <4836F9C5 DOT 10603 AT cygwin DOT com> <1391856433922-106108 DOT post AT n5 DOT nabble DOT com> <1221091821 DOT 20140208232246 AT mtu-net DOT ru> <1392012834304-106171 DOT post AT n5 DOT nabble DOT com>
In-Reply-To: <1392012834304-106171.post@n5.nabble.com>
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

- Raw text -


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