bug-guix
[Top][All Lists]
Advanced

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

bug#75843: shepherd: cron-string->calendar-event does not accept "*/15 *


From: Tomas Volf
Subject: bug#75843: shepherd: cron-string->calendar-event does not accept "*/15 * * * *"
Date: Sat, 25 Jan 2025 23:09:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hello,

when I try to configure a timer based on my legacy crontab file, I get
the following error:

--8<---------------cut here---------------start------------->8---
$ guix shell guile shepherd guile-fibers -- guile -c '(use-modules (shepherd 
service timer)) (cron-string->calendar-event "*/15 * * * *")'
Backtrace:
In ice-9/boot-9.scm:
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           4 (apply-smob/0 #<thunk 7f5d9c401300>)
In ice-9/boot-9.scm:
    724:2  3 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  2 (_ #(#(#<directory (guile-user) 7f5d9c404c80>)))
In ice-9/command-line.scm:
   185:19  1 (_ #<input: string 7f5d9c3fe850>)
In unknown file:
           0 (eval (cron-string->calendar-event "*/15 * * * *") #<di…>)

ERROR: In procedure eval:
ERROR:
  1. &message: "\"*/15 * * * *\": invalid minutes cron field"
--8<---------------cut here---------------end--------------->8---

It seems to work with 0-59/15, so there possibly is some bug in handling
the *.

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature


reply via email to

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