Howdy ng0, ng0 <n...@pragmatique.xyz> skribis:
> Does someone know how you could re-create this: > > (crontab -l of root) > # Regnerate stagit indexes every hour: > 0 * * * * (cd /var/www/git && echo `pwd` && /root/git_pragmatique_xyz.sh) > > in mcron? > > I have some cronjobs where the initial > current-working-dir must be a specific directory. > > I think I am missing (lambda) in what I have written below, Indeed you are! :-) > but the mcron documentation just > > (define %stagit-job1 > #~(job '(next-hour '(4)) > (and > (chdir "/srv/www/git/pragmatique") > (system* "sh" "/root/git_pragmatique.xyz.sh")))) Something like: #~(job '(next-hour '(4)) (lambda () (chdir …) (system* …))) See <https://www.gnu.org/software/guix/manual/html_node/Scheduled-Job-Execution.html>. Ludo’.