Skip to main content

CSC COW scripts

This bash script is useful to delete a list of processes from the COW's queue (thanks Dan):

#!/bin/bash

for (( i=$1; i<=$2; i++ ))
do
qdel $i\.foo
done

alternatively, you can use:

#!/bin/bash

for i in $(seq $1 $2)
do
qdel $i\.foo
done


to run a bash script remember to save the file and then use "chmod +x filename" to make it executable.

For example "filename 1 5" will detete 1.foo, 2.foo, 3.foo, 4.foo, 5.foo.