mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 00:15:32 +02:00
bsub: add page (#17379)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
b969e91aed
commit
7fd3d02e40
1 changed files with 28 additions and 0 deletions
28
pages/linux/bsub.md
Normal file
28
pages/linux/bsub.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# bsub
|
||||
|
||||
> Submit batch jobs to LSF (Load Sharing Facility) scheduler.
|
||||
> More information: <https://www.ibm.com/docs/spectrum-lsf/latest?topic=reference-bsub>.
|
||||
|
||||
- Submit a script file as a job:
|
||||
|
||||
`bsub {{path/to/script.sh}}`
|
||||
|
||||
- Submit a job to a specific queue:
|
||||
|
||||
`bsub -q {{queue_name}} make all`
|
||||
|
||||
- Submit a job with a name and redirect output and error:
|
||||
|
||||
`bsub -J {{job_name}} --output {{path/to/output.log}} --error {{path/to/error.log}} {{path/to/script.sh}}`
|
||||
|
||||
- Request 8 CPU cores and 16GB memory for a command:
|
||||
|
||||
`bsub -n 8 -M 16G cargo build --release`
|
||||
|
||||
- Run an interactive shell in the current session:
|
||||
|
||||
`bsub -I bash`
|
||||
|
||||
- Submit a job with a runtime limit of 45 minutes:
|
||||
|
||||
`bsub -W 45 {{path/to/script.sh}}`
|
Loading…
Add table
Reference in a new issue