TABLE OF CONTENTS


::pwtk::queue::getHead

SYNOPSIS

proc ::pwtk::queue::getHead {queueSystem} { 
    variable scriptHead
    variable direct

PURPOSE

Returns the content of the head of the script for the queueSystem.

ARGUMENTS

SOURCE

    if { [info exists scriptHead($queueSystem)] } {
        if { $scriptHead($queueSystem) == "" } {
            # load default head
            if { [info exists ::pwtk::queue::profile($queueSystem,default)] } {
                parseOptions_ $queueSystem default
            }
        }
        if { ! $direct } {
            return "$scriptHead($queueSystem)\n[addVariables_]"
        } else {
            return "$scriptHead($queueSystem)"
        }
    }
}