Skip to content

Commit 0051198

Browse files
committed
Update run.md
1 parent a691720 commit 0051198

File tree

1 file changed

+9
-7
lines changed
  • docs/software/container-engine

1 file changed

+9
-7
lines changed

docs/software/container-engine/run.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ $ srun --environment=debian cat /etc/os-release # (1)
2727

2828
The recommended approach is to use `--environment` as part of the Slurm command (e.g., `srun` or `salloc`):
2929

30-
```console
31-
#!/bin/bash
32-
#SBATCH --job-name=edf-example
33-
...
30+
!!! example "`srun` inside a batch script with EDF"
31+
```console
32+
#!/bin/bash
33+
#SBATCH --job-name=edf-example
34+
#SBATCH --time=00:01:00
35+
...
3436

35-
# Run job step
36-
srun --environment=debian cat /etc/os-release
37-
```
37+
# Run job step
38+
srun --environment=debian cat /etc/os-release
39+
```
3840

3941
Alternatively, the `--environment` option can also be specified with an `#SBATCH` option.
4042
However, the support status is still **experimental** and may result in unexpected behaviors.

0 commit comments

Comments
 (0)