You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
15 lines
344 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
# written by Alan
|
||
|
|
||
|
if [[ $# -ne 2 ]]
|
||
|
then
|
||
|
echo 'This script requires two arguments being the first and last job numbers to suspend listed by squeue.'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
for (( job_number=$1; job_number<=$2; job_number++ ))
|
||
|
do
|
||
|
echo "suspending $job_number"
|
||
|
eval sudo scontrol suspend $job_number
|
||
|
done
|