9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@cse.psu.edu
Subject: [9fans] Tip of the day...
Date: Mon, 26 Nov 2007 11:18:41 +0200	[thread overview]
Message-ID: <b3e8b81b2deb32f1d8c4186ea01e4239@proxima.alt.za> (raw)

Here's me being clever:

	% echo dma on | tee /dev/sdC0/ctl > /dev/sdD0/ctl

Now, this can be extended by adding "tee" commands as required, but I
can't think of an elegant way to do this depending on the available
DMA-capable drives.  I know that my shell programming tricks
repertoire is very limited, so I presume somebody out there will be
able to enhance the command in a scalable way (we're talking abount
only a few drives, really).

As given, it is all I have had a need for, so I'm quite pleased with
myself :-)

++L


             reply	other threads:[~2007-11-26  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26  9:18 lucio [this message]
2007-11-26 12:13 ` roger peppe
2007-11-26 20:18   ` lucio
2007-11-26 12:48 ` erik quanstrom
2007-11-26 17:18   ` Antonin Vecera
2013-02-02  5:34 [9fans] tip " cinap_lenrek
2013-02-02  5:42 ` andrey mirtchovski
2013-02-02  5:50   ` cinap_lenrek

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=b3e8b81b2deb32f1d8c4186ea01e4239@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@cse.psu.edu \
    /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).