TABLE OF CONTENTS


::pwtk::queue::setHead

SYNOPSIS

proc ::pwtk::queue::setHead {queueSystem args} {

PURPOSE

This proc sets (or updates) the so-called head of the batch-queuing script. Each queuing script is composed of head, var, body, and tail parts. The head is the first part of the script, where the specific instuctions to batch queuing system are given.

     Usage: setHead queueSystem [profile] [option value] [option value] ...

ARGUMENTS

As for the args arguments there are two possibilities. An example for the load-leveler (ll):

    queue::setHead ll parallel -total_tasks 4 

This will request the ll's "parallel" user-defined profile and it sets the -total_tasks option

    queue::setHead ll -total_tasks 4

This changes the ll's -total_tasks option for the default profile

SOURCE

    variable profile

    if { [string index [lindex $args 0] 0] != "-" } {

        # mode: setHead queueSystem PROFILE option value ...
        eval setHeadByProfile_ $queueSystem [lindex $args 0]  [lrange $args 1 end]

    } else {

        # mode: setHead queueSystem option value ...
        eval setHeadByProfile_ $queueSystem default $args
    }
}