This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Launch a windows application from crontab
- From: bartels <bartels at mailme dot ath dot cx>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Feb 2014 22:36:53 +0100
- Subject: Re: Launch a windows application from crontab
- Authentication-results: sourceware.org; auth=none
- 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>
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