From owner-freebsd-questions@freebsd.org Sun Apr 18 07:24:47 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 958015F6671 for ; Sun, 18 Apr 2021 07:24:47 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FNM0G4RYvz4jTq for ; Sun, 18 Apr 2021 07:24:46 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: by mail-pg1-x529.google.com with SMTP id t22so22108449pgu.0 for ; Sun, 18 Apr 2021 00:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kYDwiQeEN26aA47wswJ8R+heFEv6dbPkUk51hcxFY7Q=; b=Qtj5Q6BOp4JD1SPL5BMdCsAvDS4azw3F73zHnzm0hYOvgGSy3UfEZLoyB7qLYMTan/ 6bF0wEAnvtK2taZDvuHJYPwAEwXyfwarosXTBn0LKgo62DiyFsDUQjgRSGA3OtghXnmd rRaVsenpzf6WnXRVMTS4+DdeczCkj9Mkamr0m2Xu8UeMmYxrsy7M3NCTyWbqBCmFQ+2O xoMbhPwii/JGwp0+QdA2z0A8TP72cwABnczF5dnakWHwVi/fRkN20ubq7ESQGl6EDoOr ooWd9LdEQhTaQzoQ6rnWAo/vULJzghf0Sp9/PwBk35wmNdRzyjDzns2ZnjDnpxKADgzv zPJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kYDwiQeEN26aA47wswJ8R+heFEv6dbPkUk51hcxFY7Q=; b=imegRf9eF7R/ZeAenlg89v7Q4zS2S8XQjNLw3dKbD0QmghZ9/dRnmKF6Fv5X/rNavJ /acgxuLial5aGSJ2v7qb/XCk1LkPHv6WpqkFTwr+52ZWcckt6zT0WB/fhZWT40LIUcpT x8GrmiW9q/109MMd/r3x0N3Ze4sLzpWNgjnAtIlqSplMg1bZXxU5BryarnsKLNardrDg gDmTXzS4dvXduiBeFO2iJM83kJ5HjSxRBSs7KxQVjodn77FH04SUvjNpFgiNU41ppa8Z lFpr7YX13hph08kB2qQFFKgCY1eYrQh7bXdpzA4+oiXggyNOFwBGQ3IHG2wmdS6FaSy4 BTxA== X-Gm-Message-State: AOAM531q49pZkiFRcw/Qp+0nz0vBH43Rm4Tca58jLJ0bKUrwTmJDG734 /qTSdPcML9asPoH+yzVaRAO409HZNplWm0GCcg== X-Google-Smtp-Source: ABdhPJx57NoULVq0IfCav28RbXN4AH6m9Olrj2nggGGM1DPl7eNjl8nLnCsJHthbwA3G0sFTD/n9o/kz4esIwjOT/ts= X-Received: by 2002:a63:c14c:: with SMTP id p12mr6383899pgi.417.1618730685023; Sun, 18 Apr 2021 00:24:45 -0700 (PDT) MIME-Version: 1.0 References: <72AE8510-843D-4499-8758-C0E67EE0AF48@outlook.com> In-Reply-To: <72AE8510-843D-4499-8758-C0E67EE0AF48@outlook.com> From: Paul Procacci Date: Sun, 18 Apr 2021 03:24:32 -0400 Message-ID: Subject: Re: Equivalent linux notify for FreeBSD To: Carlos Lopez Cc: "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4FNM0G4RYvz4jTq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Qtj5Q6BO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=pprocacci@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RBL_SENDERSCORE_FAIL(0.00)[2607:f8b0:4864:20::529:server fail]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[outlook.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::529:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::529:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::529:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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:24:47 -0000 This thread goes over several solutions which use kqueue: https://forums.freebsd.org/threads/inotify-for-freebsd.38162/ Last post was 2018' but I'm pretty sure the information there still applies. If you are comfortable writing C, you could even write a small binary which does this (using kqueue) yourself. ~Paul On Sun, Apr 18, 2021 at 2:46 AM Carlos Lopez wrote: > Good morning, > > 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. > > > Best regards, > C. L. Martinez > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- __________________ :(){ :|:& };: