[slurm-users] scrontab question

20 views
Skip to first unread message

Sandor via slurm-users

unread,
May 7, 2024, 1:08:56 PM5/7/24
to slurm...@schedmd.com
I am working out the details of scrontab. My initial testing is giving me an unsolvable question
Within scrontab editor I have the following example from the slurm documentation:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /directory/subdirectory/crontest.sh

When I save it, scrontab marks the line with #BAD: I do not understand why. The only difference I have is the directory structure.

Is there an underlying assumption that traditional Linux crontab is available to the general user?

Hagdorn, Magnus Karl Moritz via slurm-users

unread,
May 7, 2024, 4:22:14 PM5/7/24
to slurm...@lists.schedmd.com
Hm, strange. I don't see a problem with the time specs, although I
would use
*/5 * * * *
to run something every 5 minutes. In my scrontab I also specify a
partition, etc. But I don't think that is necessary.
regards
magnus

Bjørn-Helge Mevik via slurm-users

unread,
May 8, 2024, 2:37:39 AM5/8/24
to slurm...@schedmd.com
Sandor via slurm-users <slurm...@lists.schedmd.com> writes:

> I am working out the details of scrontab. My initial testing is giving me
> an unsolvable question

If you have an unsolvable problem, you don't have a problem, you have a
fact of life. :)

> Within scrontab editor I have the following example from the slurm
> documentation:
>
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * *
> /directory/subdirectory/crontest.sh

- The command (/directory/...) should beon the same line as the time
spec (0,5,...) - but that was perhaps just the email formatting.

- Check for any UTF8 characters that look like ordinary ascii, for
instance "unbreakable space". I tend to just pipe the text throuth "od
-a".

--
Cheers,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo

signature.asc

Cutts, Tim via slurm-users

unread,
May 8, 2024, 1:02:05 PM5/8/24
to Bjørn-Helge Mevik, slurm...@schedmd.com

Someone may have said this already but you know that you can replace 0,5,10,15,20,25,30,35,40,45,50,55 with */5?

 

Tim

 

-- 

Tim Cutts

Scientific Computing Platform Lead

AstraZeneca

 

Find out more about R&D IT Data, Analytics & AI and how we can support you by visiting our Service Catalogue |


AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.

This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.com

Reply all
Reply to author
Forward
0 new messages