[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Command not found" when using `home-mcron-service`
From: |
Nils Landt |
Subject: |
Re: "Command not found" when using `home-mcron-service` |
Date: |
Mon, 15 Jan 2024 13:03:06 +0100 (CET) |
> Tanguy LE CARROUR <tanguy@bioneland.org> hat am 15.01.2024 10:38 CET
> geschrieben:
>
> ```scheme
> (gnu packages dav) ; vdirsyncer
> (gnu packages mail) ; notmuch
> ; […]
> (service home-mcron-service-type
> (home-mcron-configuration
> (jobs (list
> #~(job '(next-minute (range 0 60 5)) (string-append
> #$notmuch "/bin/notmuch new"))
> #~(job '(next-hour) (string-append #$vdirsyncer
> "/bin/vdirsyncer sync"))))))
> ```
>
> And now Mcron finds `notmuch` (and `vdirsyncer`), but… Notmuch has hooks
> that depend on other commands and I now have the following error message
> in my logs:
>
> ```
> 2024-01-15 10:20:00 6198 /gnu/store/[…]-notmuch-0.37/bin/notmuch new:
> […]/.config/notmuch/default/hooks/pre-new: line 3: mbsync: command not found
> ```
>
> `mbsync` is in my profile, but Mcron cannot find it.
> Do I have to declare all the required packages… somehow?! 🤔
That sounds like it's related to this issue I reported:
https://issues.guix.gnu.org/65471
If I'm correct, setting the PATH environment variable in the mcron job should
fix it.
- "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`,
Nils Landt <=
- Re: "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Oleg Pykhalov, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Oleg Pykhalov, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/16
- Re: "Command not found" when using `home-mcron-service`, Nils Landt, 2024/01/15
- Re: "Command not found" when using `home-mcron-service`, Tanguy LE CARROUR, 2024/01/16