From owner-freebsd-questions@freebsd.org Sun Apr 18 07:33:14 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ABD245DA368 for ; Sun, 18 Apr 2021 07:33:14 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Received: from serafino.rm-rf.it (serafino.rm-rf.it [192.165.67.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FNMB151xZz4n3B for ; Sun, 18 Apr 2021 07:33:13 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Received: from valentina.fdc.rm-rf.it (valentina.fdc.rm-rf.it [192.168.192.1]) by serafino.fdc.rm-rf.it (OpenSMTPD) with ESMTP id e2d00eb3 for ; Sun, 18 Apr 2021 09:33:04 +0200 (CEST) Received: from robinhood.fdc.rm-rf.it (robinhood.fdc.rm-rf.it [192.168.192.50]) by valentina.fdc.rm-rf.it (Postfix) with ESMTP id 39BBD1F6B0 for ; Sun, 18 Apr 2021 09:33:02 +0200 (CEST) Received: by robinhood.fdc.rm-rf.it (Postfix, from userid 1000) id 1249E601F2E; Sun, 18 Apr 2021 09:33:02 +0200 (CEST) Date: Sun, 18 Apr 2021 09:33:02 +0200 From: Gian Piero Carrubba To: freebsd-questions@freebsd.org Subject: Re: Equivalent linux notify for FreeBSD Message-ID: <20210418073302.3ee2m25fymsenjpj@robinhood.fdc.rm-rf.it> References: <72AE8510-843D-4499-8758-C0E67EE0AF48@outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <72AE8510-843D-4499-8758-C0E67EE0AF48@outlook.com> X-Rspamd-Queue-Id: 4FNMB151xZz4n3B X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of gpiero@rm-rf.it designates 192.165.67.94 as permitted sender) smtp.mailfrom=gpiero@rm-rf.it X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[192.165.67.94:from]; RBL_SENDERSCORE_FAIL(0.00)[192.165.67.94:server fail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:192.165.67.94]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[192.165.67.94:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[rm-rf.it]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:34971, ipnet:192.165.67.0/24, country:IT]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2021 07:33:14 -0000 * [Sun, Apr 18, 2021 at 06:45:53AM +0000] Carlos Lopez: > Is there something equivalent like the inotify options for FreeBSD? I > am trying to generate a script that monitors a list of files and moves > them once they are closed. There's kqueue, but there are substantial differences from inotify (e.g.: I don't think you can monitor a directory). I don't know if there's any ready-to-use command line tool to take advantage of kqueue, though. Ciao, Gian Piero.