From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0JcXDalapWU0aQEA62LTzQ:P1 (envelope-from ) for ; Mon, 15 Jan 2024 17:17:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0JcXDalapWU0aQEA62LTzQ (envelope-from ) for ; Mon, 15 Jan 2024 17:17:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=20230804 header.b=GggbTMnu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705335465; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ckt170TB9/mjeEqJxTStl1hRDyDS+VztIcngkPllwm8=; b=Kp/1xFrpHXPjA90ZYEM+gy+T2W+lKMR9S7lAW9jM2irlOfuCYwrP23iwN1qafnoO5KYDDV j2W6efdAzRfXaewoqdzD9BjI+/SvOE62mjc/YOsMA3fUACs7BR0iGp1BUQRiJleIDI9GjN 5ZTx2pUKEdzrCjVyIDCciFKxZW/OEJYl0eUkTGgfHOsLu2P4+MLlXzS/yJR2hvCdBU6N67 AkNhBOJ4PIKGC77pID+o09tUC3FF4ZQ4ZRaaoPupvH/dLDheG3F4JArpmSgfAVD2CArds8 Q54HWI2DqWYPIWLaUheLzD6F5pbg7Vhiv33DD7f6SqQhKqI7u2Rs25eaoy3rcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=20230804 header.b=GggbTMnu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705335465; a=rsa-sha256; cv=none; b=YDm0Hyb4cgTnND4VToc8sgFUEHZ0WyANR0qoEYCctHLajPO1z+FQqRqMiI7X4RW3hLivXN jkAmIe22apCHXfezV1GoKLWFPIdXr+wR7fXvTJ7VpUy/P57lhoH1aCduu5jySar0wfxWAZ iARvxu8LEJaXuXhnzM1TJdSwtfLkUQhGDIXW0hm6oy9Kw5apqjRyW4JUuk5Os101YMR6tx otQhbuUqnMY3tiaPJzpHsaa6WkxkBdDtRuQvLaIuUScTzP9ETfbnyM8lsqWDKt6/eAVdO8 fjwRTKCZYw4CNoyK0bUxPu3oh+cd9OnPjef8gGqGVvV9deuMZQvUZ2LefcwZUA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A64A446E1F for ; Mon, 15 Jan 2024 17:17:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPPeF-0004ET-FN; Mon, 15 Jan 2024 11:17:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPPeA-0004Dx-Am for help-guix@gnu.org; Mon, 15 Jan 2024 11:17:10 -0500 Received: from smtp-190a.mail.infomaniak.ch ([185.125.25.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPPe8-0003uC-El for help-guix@gnu.org; Mon, 15 Jan 2024 11:17:10 -0500 Received: from smtp-4-0001.mail.infomaniak.ch (unknown [10.7.10.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TDHN10CKczMqQR1; Mon, 15 Jan 2024 16:17:05 +0000 (UTC) Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4TDHN049NmzNL7; Mon, 15 Jan 2024 17:17:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org; s=20230804; t=1705335424; bh=nZ2WtEc857q3ay+B0h7dzDQO+VRnACmYt2eABRxVrEA=; h=References:Subject:From:Cc:To:In-Reply-To:Date:From; b=GggbTMnuu3aineSpqIR5toThQFMCBDY/Qe3V+4EoNEVX2brXK5BAs4ueiTk7p8y0O cBQ4995ercKxYON813NUAHuqR4AKfKXAfUh46ONKJn4PCAwY822zirz6qAKMokLYvc CdZYLCCjEKsns7U0ngqVxZ/8aL9ywFIV1+62L/eO8eO9NkTh/dFbIUBdc/0ecZAMC+ cBXT4QhEKLHNFS7VGOYvuu4KgBXCvxLPdMxOZMyF8i6PLhZJWNtK5+S68pFJUljLzb agJj28mkYTSjEaA6z1Yqi0k3LhFDaWQgBVdTfW1p80ZRYQL350UlhWgaGF/+dwY5SQ cJvccrPFUiNVg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <170531153920.2260.10889048706374450982@bioneland.org> <524660103.197884.1705320186122@office.mailbox.org> <170532183549.11028.8238107603508685851@bioneland.org> <170532260816.14803.15496485777094283367@bioneland.org> <87h6jeehzs.fsf@gmail.com> Subject: Re: "Command not found" when using `home-mcron-service` From: Tanguy LE CARROUR Cc: Help Guix , Nils Landt To: Oleg Pykhalov In-Reply-To: <87h6jeehzs.fsf@gmail.com> Date: Mon, 15 Jan 2024 17:17:04 +0100 Message-ID: <170533542428.27812.17121651881501708878@bioneland.org> User-Agent: alot/0.10 X-Infomaniak-Routing: alpha Received-SPF: pass client-ip=185.125.25.10; envelope-from=tanguy@bioneland.org; helo=smtp-190a.mail.infomaniak.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: A64A446E1F X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.61 X-Spam-Score: -5.61 X-TUID: ++8baJK0Zstr Hi Oleg, Quoting Oleg Pykhalov (2024-01-15 16:25:27) > The Home service matches Guix System in this case, so currently > specification of a full path to a binary is required. >=20 > It's possible to do in several ways: >=20 > 1) Use full path to the binary with ungexp, e.g. >=20 > preferred and cleaner: >=20 > #$(file-append notmuch "/bin/notmuch") >=20 > or: > (string-append #$notmuch "/bin/notmuch") >=20 > Hint: make sure notmuch is defined, e.g. at the top of a file: >=20 > (use-modules (gnu packages mail)) I tried this one! =F0=9F=98=81 The `string-append` version I mean. `mcron` can then find `notmuch`, but `notmuch` has some hooks that depend on other commands; `mbsync` and `afew` in my case. For this, I cannot really provide the full path? =F0=9F=A4=94 =E2=80=A6 actually, I could, but then i= t would be `/home/USER/.guix-home/profile/bin/mbsync`, not the actual path. This should work, but I can help be find it a bit weird, because it propagates to quite a number of files. =F0=9F=98=9E And the same goes for `vdirsyncer` that relies on `pass`=E2=80=A6 Oh, actually, I've just figured out that this doesn't actually work, because my `USER` is not the same on all my computers! =F0=9F=98=B1 And I cannot rely on `$HOME` because it's not supported by all the configuration files that are affected. So I would definitively favour a solution where the PATH is set once and for all by Mcron. Regards, --=20 Tanguy