From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uLbaC+/N318fCAAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 22:19:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sJ6VB+/N318aMgAA1q6Kng (envelope-from ) for ; Sun, 20 Dec 2020 22:19:27 +0000 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 5747494023D for ; Sun, 20 Dec 2020 22:19:26 +0000 (UTC) Received: from localhost ([::1]:41288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr72z-0007FL-57 for larch@yhetil.org; Sun, 20 Dec 2020 17:19:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr72q-0007F1-8d for Help-Guix@gnu.org; Sun, 20 Dec 2020 17:19:16 -0500 Received: from mx1.dismail.de ([78.46.223.134]:20389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr72o-0004OK-01 for Help-Guix@gnu.org; Sun, 20 Dec 2020 17:19:15 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 72667017; Sun, 20 Dec 2020 23:19:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=20190914; bh=j+7QVxvplNZji9kic+wXTAYDAdzFE2Ex83 YfMU+VNeQ=; b=pX7aWGUHS7xEpUW1ycvFxePA9Jfpxy2Bpet77S1ejSMA1R4d48 15SZNPUqoWjLGLX6Pj9GhZI73vKesmUmbX5hCmzZaXOADL+1x3IGCHvbNFxd1r6R CTtEpRmXvfJDTKtEeZ8nmmMMofH+Me+XqBoIWHPFkHkzfsCvtRs80ou7tPNn+Uk5 uc1hbl+oYCRof1nYqBTE0nnZxqz6fjPpirk4H1dqyzRj+gLZOPJZGq2QQJnoqyTE c/uwnIvCXRupla8idqRoavjyzIsSE53t2lH8QgcD8RiZm26S01qltW6cZZ2384rT eE1psYMlK/dEoCNzjEDgNK6pkMGxu5qbu9Qw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2d1bbb59; Sun, 20 Dec 2020 23:19:10 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id e4e3145b; Sun, 20 Dec 2020 23:19:10 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 74b3d037 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 20 Dec 2020 23:19:09 +0100 (CET) From: Joshua Branson To: EuAndreh Subject: Re: How to call a local function from a mcron job? References: <87czzvn2ao.fsf@euandre.org> Mail-Followup-To: EuAndreh , help-guix Date: Sun, 20 Dec 2020 17:19:07 -0500 In-Reply-To: <87czzvn2ao.fsf@euandre.org> (EuAndreh's message of "Sun, 29 Nov 2020 20:58:23 -0300") Message-ID: <87zh2815pg.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=pX7aWGUH; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 5747494023D X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: dD7A8jU5uslG Heyo EuAndreh! Perhaps you could put your scheme function into a file in the same directory as your config.scm. Call said file "my-fn.scm" with the content: #+BEGIN_SRC scheme (define-module (my-fn) #:export (my-fn)) (define (my-fn) ...) #+END_SRC Then the top of your config.scm should look like this: #+BEGIN_SRC scheme (add-to-load-path (dirname (current-filename))) (use-modules (gnu) (guix) (my-fn) ...) #+END_SRC That should solve your issue. :) -- Joshua Branson Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar