LinuxCommandLibrary

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
$ scrontab --user=user_id -e
copy
Remove current crontab
$ scrontab -r
copy
Print current crontab
$ scrontab -l
copy

SYNOPSIS

scrontab [options] [file]

DESCRIPTION

scrontab manages Slurm crontab files for scheduling recurring jobs on HPC clusters. It provides a familiar crontab-like interface where job entries combine standard cron time specifications with Slurm sbatch directives, allowing periodic job submission through the cluster's workload manager.
Jobs defined in scrontab are automatically submitted to the Slurm scheduler at specified intervals. The tool supports the same editing, listing, and removal operations as traditional crontab, making it straightforward for users already familiar with cron scheduling to set up recurring cluster jobs for tasks like periodic data processing, backups, or monitoring.

PARAMETERS

-e

Edit crontab
--user id
Operate on specific user's crontab
-r
Remove crontab
-l
List crontab contents

CAVEATS

Requires Slurm's cron functionality to be enabled. Job syntax combines cron scheduling with Slurm sbatch options.

HISTORY

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

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community