#!/usr/bin/perl if ($#ARGV == -1) { open whom,"whoami | "; $name = ; chomp $name; print "You must specify job (or user) name to delete (eg qholdjob $name) \n"; close (whom); } else { if (open jobline,"/usr/bin/qstat | grep $ARGV[0] |"){ $i = 0; while ($line = ){ $i++; chomp $line; ($jobid,$back) = split(/\./,$line); system("/usr/bin/qrls $jobid"); } close (jobline); print "Released $i jobs \n"; } else { print "Error executing qstat \n"; } }