help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to call a local function from a mcron job?


From: Joshua Branson
Subject: Re: How to call a local function from a mcron job?
Date: Sun, 20 Dec 2020 17:19:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]