[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mcron] Command does not run if not in PATH when mcron starts
From: |
Pierre Neidhardt |
Subject: |
[Bug-mcron] Command does not run if not in PATH when mcron starts |
Date: |
Sun, 08 Apr 2018 17:53:00 +0530 |
User-agent: |
mu4e 1.0; emacs 25.3.1 |
I have a custom script:
~/.local/bin/udpatedb-local
An mcron job:
(job '(next-hour)
"updatedb-local")
And a .profile:
export PATH="$PATH:${HOME}/.local/bin"
if command -v mcron >/dev/null 2>&1; then
mcron &
fi
`mcron -s ...` output is correct but updatedb-local never runs.
Now if I swap the following in my .profile:
export PATH="$PATH:${HOME}/.local/bin"
if command -v mcron >/dev/null 2>&1; then
mcron &
fi
it seems to work.
Is it possible that mcron tries to find the command when evaluating the
job file rather than when executing it?
If so, I'd suggest we turn off this behaviour as it can be rather
confusing.
Not directly related, but does mcron log anything? It's hard to debug
from the user end. Did I miss something from the manual?
--
Pierre Neidhardt
signature.asc
Description: PGP signature
- [Bug-mcron] Command does not run if not in PATH when mcron starts,
Pierre Neidhardt <=