Difference: Qdelallm ( vs. 1)

Revision 12006-05-10 - bleuant

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WESTGRID"
-- Main.bleuant - 10 May 2006

% Author: Albert Law
% File: "qdelall.m"
% Date: 2006-05-05
% Description: This will kill all the user queues on a PBS system.
% Note #1: designed for WESTGRID but should work on CLUMEQ.
% Note #2: Will destroy any file in the working directory with the name "test1234567890.txt"


function qdelall (username)

    filename = 'test1234567890.txt';

    system(['qstat | grep ', username, ' > ', filename]);
    fid = fopen(filename);

    while (feof(fid) ~= 1)
        system(['qdel ', strtok(fgetl(fid))]);
    end;

    system(['rm -f ', filename]);
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback