linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: urgrue <urgrue@tumsan.fi>
To: linux-admin@vger.kernel.org
Subject: Re: a command "spool", ie queueing commands?
Date: Thu, 04 Aug 2005 07:26:08 +0000	[thread overview]
Message-ID: <1123140368l.3265l.0l@hyttynen> (raw)
In-Reply-To: <20050804005710.GA16052@open-core.com.ar> (from ecastag@fi.uba.ar on Thu Aug  4 03:57:10 2005)

On 08/04/2005 03:57:10 AM, Emiliano Castagnari wrote:
> You could try something like:
> 
>  $ command1 && command2 && command3

Better would be command1 ; command2 ; command3, because then it won't  
depend on the previous command coming out true.
But nevertheless it lacks the ability for me to add and remove commands  
from the queue after it's started, which is almost the main feature  
that I need.

Basically it would be good enough if "at" could do "at -next", which  
would run the job after any that were already running completed.

The "batch" command is good but bases whether or not to do a job on cpu  
load levels, whereas I'm looking for the same but for disk load levels.

> Another way, is to simply develop it ... it doesn't seem like a very
> hard one to code :)

This may be true. It might be easiest to do it as an addition to "at",  
since all the spooling logic and daemon is already there.... I can't  
code worth a damn, but maybe I could swing altering "batch" to monitor  
disk load levels instead...if only there was a general disk load  
monitor that was as reliable as loadavg...

Or perhaps "at -next" would be easier. Instead of looking at the time,  
look if a job is running - if one is, postpone the job by a few  
minutes.




  reply	other threads:[~2005-08-04  7:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1122963263l.32575l.0l@hyttynen>
     [not found] ` <60a7468905080200315678d209@mail.gmail.com>
     [not found]   ` <1122969644l.1939l.0l@hyttynen>
2005-08-02 13:14     ` a command "spool", ie queueing commands? asterr
2005-08-04  0:57     ` Emiliano Castagnari
2005-08-04  7:26       ` urgrue [this message]
2005-08-04 11:16         ` Glynn Clements
2005-08-04 16:27           ` command spooling tangent Jim Roy
2005-08-09  0:54 ` a command "spool", ie queueing commands? Mike Castle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1123140368l.3265l.0l@hyttynen \
    --to=urgrue@tumsan.fi \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).