Dale-M / mcron

Cron daemon used in GNU GUIX system
https://rdmp.org/dmbcs/mcron
GNU General Public License v3.0
7 stars 0 forks source link

`append-environment-mods` examples #1

Open shegeley opened 10 months ago

shegeley commented 10 months ago

Please provide some examples of using append-environment-mods in some (possibly) real mcron job.

Context: struggling to make home-mcron-service (guix) work with ssh-agent.

Dale-M commented 10 months ago
(append-environment-mods "test" "hello")
(job '(next-minute) '(display (getenv "test")))
shegeley commented 10 months ago
(append-environment-mods "test" "hello")
(job '(next-minute) '(display (getenv "test")))

Thanks a lot. So, for Guix it will look like?

#~((append-environment-mods "test" "hello")
      (job
        '(next-hour)
        #$(program-file
           "..."
           #~(...))))
Dale-M commented 10 months ago

I can't answer this as I don't know Guix that well and don't really understand your question. You would do better by posting the question to the Guix mailing list, exposed at https://lists.gnu.org/mailman/listinfo/help-guix.