Linux command
qsub 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Submit
qsub [script.sh]
Example
qsub -l walltime=[1]:[30]:[00] [script.sh]
Example
qsub -l nodes=[2]:ppn=[4] [script.sh]
Example
qsub -q [queue_name] [script.sh]
说明
qsub submits batch jobs to TORQUE or PBS (Portable Batch System) queue managers. It's used in high-performance computing clusters to schedule jobs for execution when resources become available. Jobs are scripts that specify resource requirements and commands to execute. The queue manager allocates nodes, CPUs, and memory according to the request.
参数
- -l _resource_=_value_
- Request resource (walltime, nodes, mem, etc.)
- -q _queue_
- Submit to specific queue
- -N _name_
- Job name
- -o _path_
- Standard output file path
- -e _path_
- Standard error file path
- -j oe
- Join stdout and stderr
- -M _email_
- Email address for notifications
- -m _events_
- Email on events (b=begin, e=end, a=abort)
- -V
- Export all environment variables to the job
- -I
- Submit as interactive job
- -S _path_
- Shell to use for the job script
- -a _date_time_
- Defer execution until specified date/time
- -v _variable_list_
- Export specific environment variables to the job
FAQ
What is the qsub command used for?
qsub submits batch jobs to TORQUE or PBS (Portable Batch System) queue managers. It's used in high-performance computing clusters to schedule jobs for execution when resources become available. Jobs are scripts that specify resource requirements and commands to execute. The queue manager allocates nodes, CPUs, and memory according to the request.
How do I run a basic qsub example?
Run `qsub [script.sh]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l _resource_=_value_ do in qsub?
Request resource (walltime, nodes, mem, etc.)