X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 65F923858C39
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu
Subject: Re: Does cygwin have an 'autorun' utility/package?
To: Mark Hansen <cygwin@mehconsulting.com>, cygwin@cygwin.com
References: <66df682d-2a2f-7429-39d9-f7b32a79c693@mehconsulting.com>
 <20220116161249.tvizujlenvqkdyyp@lucy.dinwoodie.org>
 <056dd5de-878e-b04f-6717-c9506701e797@mehconsulting.com>
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <86247c2b-c254-63e8-95c1-d5fec2b1c4be@cs.umass.edu>
Date: Sun, 16 Jan 2022 12:59:55 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
 Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <056dd5de-878e-b04f-6717-c9506701e797@mehconsulting.com>
Content-Language: en-US
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_SHORT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: moss@cs.umass.edu
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

inotify is a POSIX library that would help meet the need.
It apparently has not been ported to Cygwin as a regular
package, though Windows has the necessary underlying ability.

However, this suggests that you can fairly easily build a
program to help:

https://github.com/thekid/inotify-win

It seems to build and work reasonably well.

Another angle is this Qt library (though I am not sure if it
works under Cygwin):

https://doc.qt.io/qt-5/qfilesystemwatcher.html

Best - Eliot Moss

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
