From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wBPhIpFOpWUWEgAAqHPOHw:P1 (envelope-from ) for ; Mon, 15 Jan 2024 16:26:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wBPhIpFOpWUWEgAAqHPOHw (envelope-from ) for ; Mon, 15 Jan 2024 16:26:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EDWFkY+N; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705332369; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=i8xcI6zo5/d6VgO6lGkBRvO/aHcl0491CYd66eHloms=; b=jEzXmyiLjyTrxfCX+gN+0aiQiYFxbcrHIdmUi1M9dZ0A9z0j5UcYyl3yMoEDMz8XUQfhua n1IU4amjMG1fwzG0pLyILshz8ArJjve0FqlSOz2/seQJ2/wUKoOrwOzCNTv/JxUX/zMjkg renaNtvYWP53ZPa1lox25hYf5sc38iItuSJCISCkUE3dxgq6s5mERhn2OE4yjDe2cr0xNt onVY7mlGBGZ/zCOArQ5GNxmsbPmXUThP3CuvdC6r9QDfj9GGa/HMGgm5oY3OBZC0rgEWet 6OHepYwJVYfxQsqFy9iWKzUPbR3qRnE0eOxQu43PTtbX1aqoV254L1MHGSEuqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705332369; a=rsa-sha256; cv=none; b=KdYsxUXC+UMeJkgaBgmViTJPN+KhINl+7j+JGv8TFSDeZXilvHwVgl+8lCBIJviJtNUoK3 3P5EGQ34cTSUBSPSY5S+YQ0WH6SuJ6tlO5+zqb5ucAtbG6EU/1z4U1SOAuWdAxw5JQWkLb roz7AQybY39w0CFpIPWRzCR3U+bpGstb2VevTmNUKsgfqhHr7K6t9YZ862FsC/bFX4DS1g efHQUsHRqB+cpv5UFMb0xBT9H7KzIYg1ZsIAiOzOeRgPCTRgs1z1PCXTrIcBsc/VpAwSqo MVjHx11ZSIVZAfF6X+TdaxeeogN0DPM9L62ebVFThGpixq0l2SyKIzYEded0JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EDWFkY+N; dmarc=pass (policy=none) header.from=gmail.com; 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" 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 4B230212DE for ; Mon, 15 Jan 2024 16:26:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPOqE-0005vQ-10; Mon, 15 Jan 2024 10:25:34 -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 1rPOqC-0005vI-O7 for help-guix@gnu.org; Mon, 15 Jan 2024 10:25:32 -0500 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPOqA-00044a-AA for help-guix@gnu.org; Mon, 15 Jan 2024 10:25:32 -0500 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ccbefe570bso26987201fa.0 for ; Mon, 15 Jan 2024 07:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705332328; x=1705937128; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=i8xcI6zo5/d6VgO6lGkBRvO/aHcl0491CYd66eHloms=; b=EDWFkY+NeJtmEXHUKd+rtuvxPN1BqTHuRcega9/oAVYBEirtVaBfYDIGYwFVEbdfJJ zYUh2Zysp8PYuNgPm57/yPORDy+SFLSJsZf4+aT/wYcvioD3TWNPFw2ZmCjpjc3/3d6K aUNnPa48XjTULnm/PrFFsi3eIDKDh00HqxN3G3Oqifmyn/R2gwevUBaU1IAFNjuHZENq zjrKwdlP7H208vY91bbdRjeCtm4DVtt4yCevccv/C/aXQj3sEG/4yiqfYiKooe/GELsP rHtbGjwzN5ROMRGggNs0kE5gQWj65GQnblk+aV4mKQXKjPGShmjfcv2lEZVOGl0sBqHy AWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705332328; x=1705937128; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i8xcI6zo5/d6VgO6lGkBRvO/aHcl0491CYd66eHloms=; b=ufTUrEgCG7k0brbh2574/XWQkQFXPalkdcATBWaKLjYRUrAwr+wzC1OcdtLAB3BBhO 7nHc+lCWCcDrl3/40MFm5u25w5wBnS9eoOBgHNuJnGFRfLShxw8p3VhZL/7TSVtd53Ud HTC+UqBOGbtj1ElEMnY6BJYCO5Nw4UNQD2JcoemY1OcYIHbOry3a+UqNTelpz9dAULyg GbsGBp0KWdaS1JfuftLDTHT3q4qUIFmpBClgB2j3GCj8wAk8LTK85zvpHWExeAs0aYQD ZnHm41cNfZWiC16Xvon5jKaK3jDsztvjAcpJEWjJIekd5L6sLYdqtd3y0I5C7I81+QrY R77w== X-Gm-Message-State: AOJu0YySrMfFKGaZAGfPsLAS01eoiH63s+ih58N64Vxg5uvG1AKi/IW7 QbORcAc3/wN5qzFZi5e3TZLm4S5hd8NW3A== X-Google-Smtp-Source: AGHT+IFigIu+oK3HaY8x/ku/5FtwcpUPpdALdIBDUZPR99cEk1PBV9mC1hIv8Om0KJCP/CCy4cjdfw== X-Received: by 2002:a2e:4a09:0:b0:2cd:a2d4:39cc with SMTP id x9-20020a2e4a09000000b002cda2d439ccmr4015159lja.4.1705332328204; Mon, 15 Jan 2024 07:25:28 -0800 (PST) Received: from localhost ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id f11-20020a2e918b000000b002cd5624c1f8sm1352488ljg.109.2024.01.15.07.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:25:27 -0800 (PST) From: Oleg Pykhalov To: Tanguy LE CARROUR Cc: Help Guix , Nils Landt Subject: Re: "Command not found" when using `home-mcron-service` In-Reply-To: <170532260816.14803.15496485777094283367@bioneland.org> (Tanguy LE CARROUR's message of "Mon, 15 Jan 2024 13:43:28 +0100") References: <170531153920.2260.10889048706374450982@bioneland.org> <524660103.197884.1705320186122@office.mailbox.org> <170532183549.11028.8238107603508685851@bioneland.org> <170532260816.14803.15496485777094283367@bioneland.org> Date: Mon, 15 Jan 2024 18:25:27 +0300 Message-ID: <87h6jeehzs.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -12.10 X-Spam-Score: -12.10 X-Migadu-Queue-Id: 4B230212DE X-TUID: OINX69si8BvR --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tanguy LE CARROUR writes: > If I'm correct, setting the PATH environment variable in the mcron job > should fix it. > > You mean inside the `#~(job =E2=80=A6)`? Sorry, but=E2=80=A6 how would yo= u do that? =F0=9F=98=85 > And this means that I would have to do it for every single job? =F0=9F=A4= =94 > Sounds suboptimal to me. > Quoting Tanguy LE CARROUR (2024-01-15 13:30:35) >> Quoting Nils Landt (2024-01-15 13:03:06) >> > > Tanguy LE CARROUR hat am 15.01.2024 10:38 CET >> > > geschrieben: >> > > [=E2=80=A6] >> > > `mbsync` is in my profile, but Mcron cannot find it. >> > > Do I have to declare all the required packages=E2=80=A6 somehow?! = =F0=9F=A4=94 >> >=20 >> > That sounds like it's related to this issue I reported: >> > https://issues.guix.gnu.org/65471 >>=20 >> It looks like, indeed! > > Actually, there's a "small" difference: I'm not using Debian, but=E2=80= =A6 Guix > System! =F0=9F=A4=94 The Home service matches Guix System in this case, so currently specification of a full path to a binary is required. It's possible to do in several ways: 1) Use full path to the binary with ungexp, e.g. preferred and cleaner: #$(file-append notmuch "/bin/notmuch") or: (string-append #$notmuch "/bin/notmuch") Hint: make sure notmuch is defined, e.g. at the top of a file: (use-modules (gnu packages mail)) 2) Symlink resolving in a Guix profile, e.g.: "/home/user123/.guix-profile/bin/notmuch" or (readlink "/home/user123/.guix-profile/bin/notmuch") I would recommend for 1) because of reproducibility and easier to track in future, especially if you have a lot of self managed services. Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmWlTmcUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pwkcw//dNBwsyz+V3bSLduO1o259z/qOVO2 ++GGI3CLnJ4bZopeGrzdwvN99Su1dH7dmuRPHPQVxe/Lob2NCUt8HIr1T0hoAeQs KNEP55WHl1y8i1Ywy3QcKS+pSeaf/SbZabV/bqHNROPlRu9Y9taErf2MG7wQ7nbO wycUoMyd9ISoTRZwfpajLBZcJZxjXK2AdXFT7JfpyqP4/vEUhTVk4gn7lEyx42xE dTGh/lXjYGb3ME5026sTS6/u7cfJ7X88I99KX3MSRffX/rOGmpCkjJvfwjTXstlw utr9CynJcbSyykMy/0v/8pUTYYmk4EdEnYJmtME7MmFcvRoRYPTM90pbOKUoSU+I rp34fYbom2ArlRtkZOpEwJAu2ok1tr+oF/p5bPWgMPIlZDHWFyEGXRvBSqwvUClU GhUFfU0sd3VFDF8Em6j7vHFmEGYfPWtVmJ3I0xIBMEjKPUxCeO94rXncypkT0k+a ruvXkQ/JKF8MSlNaP8aW4rGcthXkCxvfmxegx0zVJdRD4Tj5R9/dBVhWWUckBzCe uwtggqmbnrIiJI6oQyq2YPCkQCSEYF02nTX1pumjCOq602s2HG/9IoRyq/WVS1Bc qq7QfVyAVKE7/o8kO6J9IsPrFeS8F8kuvEhUjVFLBYaEHAxyH82PKBhpiEWy86hf BL/mixvagr6ArcI= =dVPW -----END PGP SIGNATURE----- --=-=-=--