scale scale scale scale
scale scale scale scale
  
 hpprogs

 HP48/49 tools

 Service

Solar Thermal Systems

Photovoltaik

Science

 Queuing

 Tips&Tricks

 Jlearn

 libXml2f90

 ILCRT

 Kontakt

 
 
Für ein softwarepatentfreies Europa!!!
  






++++++++++++++++++++++++++++++++++++++++
This is a 'easy to use' queuing-system
11/2003 by Alexander Poddey
++++++++++++++++++++++++++++++++++++++++

the nth task will not be started until the
(n-1)th task is really finished.

Just copy the script to any directory you
like. You can run several independent queues
in !different! directories

If this script is doing strange things try the
'BCE' code with external template file or
the simpler 'EASY' code which is not depending
on bc. To do this just set the 'code' variable
in the first vew lines of the script.

use: ./queue.sh "command" & to add a command
use: ./queue.sh -show to show the tasks in queue
use: ./queue.sh -ignore 2 to delete command with
                   TaskID2 from queue

use: cat ./queue.log              to see the logfile



----------------------------------------------
Known systems on which this script works:
----------------------------------------------
* hanni @ HLRN Hannover
* standard linux installations with 'bc' running
* standard linux installations

The code works fine on your system and it's not
on the list? found a bug? please let me know!


You should test the scripts in accordance to their order in the following list.

queue.sh
all in one recommended (runs e.g. on hanni@HLRN)
The following script's are parts of '.queue.sh'

bcqueue.sh
'bc' version
bcequeue.sh
'bc' version with external templatefile
easyqueue.sh
not using 'bc' should work on all standard linux installations

When you want to use a script file to put your tasks in a queue you should use something like the following. The sleeping time depends on the speed of your file I/O (e.g. on hanni you should use 10 !).
#!/bin/sh
./queue.sh "command1 &" &
sleep 2
./queue.sh "command2 &" &
sleep 2
./queue.sh "command3 &" &
...