Then submit the second job using the `depend` function:
Then submit the second job using the `depend` function:
```console
```console
qsub -W depend=afterok:123456 ./secondjob
$qsub -Wdepend=afterok:123456 ./secondjob
```
```
Both jobs will be queued, but the second job won't start until the first job has finished successfully.
Both jobs will be queued, but the second job won't start until the first job has finished successfully.
...
@@ -401,7 +401,7 @@ The allocated nodes are accessible via SSH from login nodes. The nodes may acces
...
@@ -401,7 +401,7 @@ The allocated nodes are accessible via SSH from login nodes. The nodes may acces
Calculations on allocated nodes may be executed remotely via the MPI, SSH, pdsh, or clush. You may find out which nodes belong to the allocation by reading the $PBS_NODEFILE file
Calculations on allocated nodes may be executed remotely via the MPI, SSH, pdsh, or clush. You may find out which nodes belong to the allocation by reading the $PBS_NODEFILE file