← 返回命令列表

Linux command

scrontab 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Install

scrontab path/to/file

Edit

scrontab -e

Example

scrontab -u username -e

Remove

scrontab -r

Print

scrontab -l

说明

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.

参数

-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)

FAQ

What is the scrontab command used for?

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.

How do I run a basic scrontab example?

Run `scrontab path/to/file` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -e do in scrontab?

Edit crontab; creates a default template if none exists