[torqueusers] qdel all
Steve Young
chemadm at hamilton.edu
Thu Jun 4 10:43:18 MDT 2009
Hi Victor,
Thanks! I figured there might be an easier way. I was awking out the
jobid's for a user and putting those numbers into a loop to qdel them
all. Your suggestion would make this a lot easier =).
-Steve
On Jun 4, 2009, at 12:39 PM, Victor Gregorio wrote:
> Hello all,
>
> You can use qselect and pipe to 'xargs qdel':
>
> qselect -u <username> | xargs qdel
>
> Hope this helps,
>
> --
> Victor Gregorio
> Penguin Computing
>
> On Thu, Jun 04, 2009 at 09:25:11AM -0700, David Sheen wrote:
>>
>> Hi,
>>
>> We have something in place that will delete every process a user is
>> running on a node; we have problems with Q-Chem leaving phantom
>> processes
>> on slave nodes.� The script is:
>>
>> ps -fU $1 > psfile
>> awk "{if (\$1 == \"$1\" ) print \$2}" psfile > killfile
>> kill -9 `cat killfile`
>>
>> I imagine you could use something similar with the output of qstat.
>>
>> Dave
>>
>> On Thu, Jun 4, 2009 at 8:22 AM, Steve Young <[1]chemadm at hamilton.edu
>> >
>> wrote:
>>
>> Hi,
>> � � � �I would like to add it would be nice to be able
>> to do something
>> like
>> qdel -u <username> or something of the sort that would allow me
>> to
>> remove all the jobs for a certain user in addition to as Brock
>> suggests, a way for each user to remove all of their own jobs.
>> Thanks,
>> -Steve
>>
>> On Jun 4, 2009, at 10:11 AM, Brock Palen wrote:
>>
>>> qdel all, from a non operator, tries to delete every job, not just
>>> ones they own, and it prints out "Unauthorized request"
>>>
>>> We would like to use it for users who find they have a large number
>>> of jobs to delete, but did not use job arrays, Currently we send
>>> nasty shell scripts to people,
>>>
>>> could qdel all be turned into something a little more user friendly?
>>>
>>>
>>> Brock Palen
>>> [2]www.umich.edu/~brockp
>>> Center for Advanced Computing
>>> [3]brockp at umich.edu
>>> (734)936-1985
>>>
>>>
>>>
>>> _______________________________________________
>>> torqueusers mailing list
>>> [4]torqueusers at supercluster.org
>>> [5]http://www.supercluster.org/mailman/listinfo/torqueusers
>>
>> _______________________________________________
>> torqueusers mailing list
>> [6]torqueusers at supercluster.org
>> [7]http://www.supercluster.org/mailman/listinfo/torqueusers
>>
>> References
>>
>> Visible links
>> 1. mailto:chemadm at hamilton.edu
>> 2. http://www.umich.edu/%7Ebrockp
>> 3. mailto:brockp at umich.edu
>> 4. mailto:torqueusers at supercluster.org
>> 5. http://www.supercluster.org/mailman/listinfo/torqueusers
>> 6. mailto:torqueusers at supercluster.org
>> 7. http://www.supercluster.org/mailman/listinfo/torqueusers
>
>> _______________________________________________
>> torqueusers mailing list
>> torqueusers at supercluster.org
>> http://www.supercluster.org/mailman/listinfo/torqueusers
>
More information about the torqueusers
mailing list