LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

scrontab

Schedule recurring Slurm cluster jobs

TLDR

Install a crontab from file
$ scrontab path/to/file
copy
Edit current user's crontab
$ scrontab -e
copy
Edit specific user's crontab (requires root or SlurmUser)
$ scrontab -u username -e
copy
Remove current crontab
$ scrontab -r
copy
Print current crontab
$ scrontab -l
copy

SYNOPSIS

scrontab [-u user] filescrontab [-u user] [-e | -l | -r]

DESCRIPTION

scrontab manages Slurm crontab files for scheduling recurring batch jobs on HPC clusters. It uses standard cron time specifications (minute, hour, day of month, month, day of week) combined with Slurm sbatch directives via #SCRON comment lines.Lines starting with #SCRON define sbatch options for the single following crontab entry; options reset between entries. Unlike traditional crontab, user environment variables are not inherited. Jobs are automatically submitted to the Slurm scheduler at specified intervals.

PARAMETERS

-e

Edit crontab; creates a default template if none exists
-l
Print current crontab to stdout
-r
Remove crontab; running jobs continue but will not recur
-u user
Operate on specified user's crontab (listing requires Operator/Admin; editing/removal requires root or SlurmUser)

INSTALL

sudo apt install slurm-client
copy

CAVEATS

Requires Slurm's cron functionality to be enabled by the cluster administrator. User environment variables are ignored unlike traditional crontab.

HISTORY

Part of Slurm workload manager, providing periodic job scheduling for HPC environments.

SEE ALSO

sbatch(1), crontab(1), scontrol(1), squeue(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid