Linux Journal

Listing 1. Sample GNQS Commands

#Create a batch processing queue:
qmgr create batch_queue web-queue

#Submit a job
qsub -q web-queue <<EOF
command -args data
EOF

#View queue status
qmgr show queue

web-queue@webserver; type=BATCH; [ENABLED, INACTIVE]; pri=16 lim=1
0 exit; 0 run; 0 stage; 0 queued; 0 wait; 0 hold; 0 arrive;

#Create a network queue on webserver.genome, run<\n> 
#on two cpu servers, round robin load balanced
qmgr create pipe_queue web-queue
add destination=job-queue@cpu1.genome,job-queue@cpu2.genome web-queue
set lb_out web-queue
(on each cpu server)
qmgr create batch_queue job-queue run_limit=1
set lb_in job-queue
qmgr set scheduler webserver.genome