From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wMBJOlaYT2aufgAAe85BDQ:P1 (envelope-from ) for ; Thu, 23 May 2024 21:26:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wMBJOlaYT2aufgAAe85BDQ (envelope-from ) for ; Thu, 23 May 2024 21:26:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ymail.com header.s=s2048 header.b=ZwRfC6Nz; dmarc=pass (policy=none) header.from=gnu.org; 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-Seal: i=1; s=key1; d=yhetil.org; t=1716492374; a=rsa-sha256; cv=none; b=Iz7v7Smi9V9rsIl1akLudjNKl+y725b7K7+kYcbFtgmQ19qp2deoflvoNg6qXdH51tMT9O 30FWzPLLW3SQ7vQjY+emVQmJRU/ylIkwNMX0wrZv3jAvlV8Wd7i32OTIvK7t1kEDLVHacz fByhM/lx0b3q37SWYoH9WspY3auPzVxAzbSW32p71TMfvlWT27zvXkJhgXa7eSpS1TKqD+ hb2mvKZa1Dk943ya6kGqATlmwNn6QwgXAwdSuLicObWVeE56RAuf+zOYlkriXySlZJZ9uq 8NCIseO2ADCN/WV4NTY39OoMS7VnRMGdZekV0KKL28MfQW12C09VHaKdo4Eyxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ymail.com header.s=s2048 header.b=ZwRfC6Nz; dmarc=pass (policy=none) header.from=gnu.org; 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=1716492374; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=bTf75/wICjT9Ksq286KGVrxLphnL6kdRf8Gn68oFBTM=; b=ScSFlIwCMznbqoou4sqoB1h+7yh2NHDPuqHa4IlixrMld7P1Azr+wxD94C+q3VPgJsqCMp O0FyFrrABsEynhjZE4Pcqh41cQG0G29nw8ZmRKS3hB6rWBhHtTMW2qF9xbhaUrsWmcniiL rvBMK6etbqSZ38OPQNI+XR7lv3E64jotA1oUmER5w2yXywGr0cYzudAtGXSH2rrR9+v5fR KwdGytKcEQULE+1zN0rsfqqZ4owGS3+IUOVyGP2U+rD+NoViBurAQJ49N/nwmyD1ZP+Ocf Q7GAE86dXUmP8gIXAep4Y/M60w9+ITHoFrVQsJ24cO08P/CBKZd+UYAhI0MMgA== 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 91D5113AF4 for ; Thu, 23 May 2024 21:26:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAE48-0006Gm-1e; Thu, 23 May 2024 15:25:28 -0400 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 1sAE3w-0006FM-LM for help-guix@gnu.org; Thu, 23 May 2024 15:25:23 -0400 Received: from sonic311-31.consmr.mail.ir2.yahoo.com ([77.238.176.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAE3t-0007jD-Kt for help-guix@gnu.org; Thu, 23 May 2024 15:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1716492306; bh=844k6LVSd0REliqvHVqalyyB7MvhPRXjLDk3DHzdzww=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=ZwRfC6NzpR/435E0mTGdZqbJNdIXFAnHTcU5GDSgupbgVyjfzhMmEa/LFldqP5ARfVjkC4dUVgLjzD42XniEOuDSeCwvoYWOgPr0aaPACnTgO8gPegzERTtKuGlg2kyZv9FubY2Qsi90p5QpwrQ8bSYmklx/DZOS7FU3KIWU0v39gcOp49GTKJ2IeLJvbKJk4lWDy7j1zPKJmKKfDi/Ik/LUr/M9P5LW1N0rIhGwlYV9AZ+X3RVB5Qso8oS+aoyVfHpqVvbOhGstOq0khJpwBwQspI0Pqfv8w5gtrZBBOGtAoJMSeuTJoba+wCp86zKi81P9xmP8KTqANz7QP0Szxg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716492306; bh=JoxZqNsLF0Krvq7e0edk00wSVVoZW4z+t/lPDhwQ3Ln=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=qjGgblOFBoXyEEoDS3PxQaaQ6Up7uPGtoAGnA6T5fvFX15B2ev7Tem5Z4AtDVUM7zu/JEjqmGEwPGrqUOEKFAF8ixW2ZVMztWcHE2hRUnthCOmESnanBtkfZ1pUBgdpDdt8j10pgHvrjwMz8vcoY9uxMIPrMfFPjwzGlZA/49dEOygeNsP2rfYN8Bjoh6fXmxKT+sawXYCAz2gPDqEQPV6Lx7cpbt5YlQQxbC4lvYAMdNIHXVjLjr3d7BuuD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fgces5MsIOjfmAmoJGqOnIqXRpeJNSWKf MKIpUbfGtzPsF3xYlHlBL.gS_O_FtDVnwGeBcHOL2cMTz5o63o8qlfrJxu2JsVb1lvPL0hgO8H8O EkMn5RVW0ry3MSqsQmwYxta_PilZTqYbgV2_0mELVqchv_gG4WyhccqufilMP49vTy6HpPnINkeQ lq_HMci3a4iA1UR49Ib2HXBBa_s3LstmCWK7W2NEIKK6yK3E- X-Sonic-MF: X-Sonic-ID: 89c33691-871c-4bb2-be26-b8f5621cb71e Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Thu, 23 May 2024 19:25:06 +0000 Received: by hermes--production-ir2-7b99fc9bb6-hcsdk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5494ea1398b30ec633434dd9a821427c; Thu, 23 May 2024 19:25:05 +0000 (UTC) Date: Thu, 23 May 2024 21:25:08 +0200 To: help-guix@gnu.org Subject: Re: How to configure smartd and send notifications? In-Reply-To: References: <4D873504-6540-477A-A2DB-DE293395CAFC.ref@ymail.com> <4D873504-6540-477A-A2DB-DE293395CAFC@ymail.com> <87seycu3df.fsf@lease-up.com> <87msokttht.fsf@lease-up.com> <0525BF4D-96C2-4F58-BB27-19A88DD8403E@ymail.com> <87jzjot5it.fsf@lease-up.com> <79C29ABD-8FFC-4930-A8E0-798ABF4EEB11@ymail.com> Message-ID: MIME-Version: 1.0 X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=77.238.176.163; envelope-from=blobbyjj@ymail.com; helo=sonic311-31.consmr.mail.ir2.yahoo.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: , Reply-to: Tristan Kohl From: Tristan Kohl via 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: 91D5113AF4 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.86 X-Spam-Score: -5.86 X-TUID: /3AxjO6obgZd Well look at me=2E So focused in my old ways on constructing a shell script= that I did not even think about using Guile as the executable :D Thank you Thomas an Felix for your pointers! I read up about G-Expressions and got it almost working=2E But I must miss= something because when executing the build result it makes the request suc= cessfully (checked return of http-get with pk and logs on the server) but s= till fails with this error: Backtrace: 0 (primitive-load "/gnu/store/9gjnc0p=2E=2E=2E") ERROR: In procedure primitive-load: Wrong type to apply: # (use-module (gnu) (guix modules)) (use-package-modules tls) (define smartd-send-ntfy (program-file "smartd-send-ntfy" (with-extensions (list gnutls) (with-imported-modules (source-module-closure '((web client))) #~((use-modules (web client)) (http-get "https://example=2Ecom")))))) On 21 May 2024 17:50:27 CEST, Tomas Volf <~@wolfsden=2Ecz> wrote: >On 2024-05-21 17:33:24 +0200, Tristan Kohl via wrote: >> Hello Felix, >> >> my last message was not to critizise your help but rather my frustratio= n with my own limited progress=2E I really appreciate the help! >> >> program-file at least results in a usable thing however since the scrip= t gets executed by smard I get the "command not found" in my logs=2E It see= ms like curl is not in PATH for smartd=2E Do I need to import something int= o the gexp? >> >> Also those env variables are defined by smartd during runtime depending= on which drive produced the error=2E Therefore I need shell expansion/env = variables and have to use system (without *) imho=2E >> >> This is the current state: >> >> (define-smartd-send-ntfy >> (program-file "send-ntfy" >> #~(system >> (string-append "curl " "-H \"Title: $SMARTD_SUBJECT\" " =2E=2E=2E= )))) > >Ignoring the obvious quoting issues here (what Felix does with `getenv' s= eems >much safer, and should produce the same result?), > >> >> Note: when using system* the error is: >> In execvp of curl: No such file or directory > >This should be solvable by using `file-append', so, basing on the system* >variant, something like: > > #~(system* #$(file-append curl "/bin/curl") ) > >Should invoke curl by absolute path=2E (You need import (gnu packages cu= rl) of >course=2E) > >Hope this helps, >Tomas > >-- >There are only two hard things in Computer Science: >cache invalidation, naming things and off-by-one errors=2E