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?
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
On Di, 2024-05-07 at 12:06 -0500, Sandor via slurm-users wrote:
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?
Sandor via slurm-users slurm-users@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".
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 Cataloguehttps://azcollaboration.sharepoint.com/sites/CMU993 |
From: Bjørn-Helge Mevik via slurm-users slurm-users@lists.schedmd.com Date: Wednesday, 8 May 2024 at 07:38 To: slurm-users@schedmd.com slurm-users@schedmd.com Subject: [slurm-users] Re: scrontab question Sandor via slurm-users slurm-users@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 ________________________________
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.comhttps://www.astrazeneca.com