#!/bin/csh

if ($#argv < 1) then
        printf "Please provide source file.\n\n"
        exit
endif

set plotFiles = ("/_q_pkts.tr.xgraph" "/_q2_pkts.tr.xgraph")
#"/_q_size.tr.xgraph" "/_q2_size.tr.xgraph"
while ($#plotFiles > 0)
    set cmdarg = "xgraph -nl -P"
    foreach arg ($argv)
        set cmdarg = ($cmdarg" "$arg$plotFiles[1])
    end
    shift plotFiles
#    echo $cmdarg
    eval $cmdarg" &"
end
