[comp.sys.amiga] How can I set a task queue?

W_TROIA@upr1.upr.cun.edu (Paolo V. Troia) (10/25/90)

     Is there any way I could set a queue in my Amiga to which one would 
submit tasks to be run? The different tasks would then be run sequentially 
and at whatever priority the user had assigned to the queue. I would like 
to be able to submit several tasks to the queue at a time and have the system 
process them in the background at a reduced priority while I use the rest of 
the systems resources for other tasks (Thank god for multitasking!).

     My rationale is that it would be more desirable to have the system run 
these tasks sequentially rather that trying to have them all running 
simultaneously in the background. I realize I can specify tasks priorities 
individually for all the different processes, but it would be convenient if  
there were a way to queue the tasks...

--------------------------------------------------------------------------
Paolo V. Troia                          w_troia@upr1.upr.clu.edu
University of Puerto Rico               Phone: (809)834-3405
--------------------------------------------------------------------------

jmeissen@oregon.oacis.org ( Staff OACIS) (10/25/90)

In article <34477@nigel.ee.udel.edu> W_TROIA@upr1.upr.cun.edu (Paolo V. Troia) writes:
>
>     Is there any way I could set a queue in my Amiga to which one would 
>submit tasks to be run? The different tasks would then be run sequentially 

The simple method is to use the CLI's type-ahead feature to queue the tasks
there. Or use a script/batch file. Use the ChangeTaskPri command to lower
the priority before starting, and fire up a new CLI to continue doing
other things.

-- 
John Meissen .............................. Oregon Advanced Computing Institute
jmeissen@oacis.org        (Internet) | "That's the remarkable thing about life;
..!sequent!oacis!jmeissen (UUCP)     |  things are never so bad that they can't
jmeissen                  (BIX)      |  get worse." - Calvin & Hobbes

navas@cory.Berkeley.EDU (David C. Navas) (10/25/90)

In article <34477@nigel.ee.udel.edu> W_TROIA@upr1.upr.cun.edu (Paolo V. Troia) writes:
>
>     Is there any way I could set a queue in my Amiga to which one would 
>submit tasks to be run? The different tasks would then be run sequentially 
>and at whatever priority the user had assigned to the queue. I would like 

It's in there, some folks call it "run" :)

Seriously, try this:

run changetaskpri -1 +
echo "hello" +
echo "there"

Notice the plus at the end of each line, except the last.  Will that do? :)


David Navas                                   navas@sim.berkeley.edu
"Excuse my ignorance, but I've been run over by my train of thought."  -me