* [9fans] tip of the day @ 2013-02-02 5:34 cinap_lenrek 2013-02-02 5:42 ` andrey mirtchovski 0 siblings, 1 reply; 8+ messages in thread From: cinap_lenrek @ 2013-02-02 5:34 UTC (permalink / raw) To: 9fans mycroftiv just showed me a trick he learned from uriel: bind /net/tcp /proc ps -- cinap ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] tip of the day 2013-02-02 5:34 [9fans] tip of the day cinap_lenrek @ 2013-02-02 5:42 ` andrey mirtchovski 2013-02-02 5:50 ` cinap_lenrek 0 siblings, 1 reply; 8+ messages in thread From: andrey mirtchovski @ 2013-02-02 5:42 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > bind /net/tcp /proc > ps but the context in which it was introduced was different: http://9fans.net/archive/2007/03/326 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] tip of the day 2013-02-02 5:42 ` andrey mirtchovski @ 2013-02-02 5:50 ` cinap_lenrek 0 siblings, 0 replies; 8+ messages in thread From: cinap_lenrek @ 2013-02-02 5:50 UTC (permalink / raw) To: 9fans ah, thanks :) -- cinap ^ permalink raw reply [flat|nested] 8+ messages in thread
* [9fans] Tip of the day... @ 2007-11-26 9:18 lucio 2007-11-26 12:13 ` roger peppe 2007-11-26 12:48 ` erik quanstrom 0 siblings, 2 replies; 8+ messages in thread From: lucio @ 2007-11-26 9:18 UTC (permalink / raw) To: 9fans 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Tip of the day... 2007-11-26 9:18 [9fans] Tip " lucio @ 2007-11-26 12:13 ` roger peppe 2007-11-26 20:18 ` lucio 2007-11-26 12:48 ` erik quanstrom 1 sibling, 1 reply; 8+ messages in thread From: roger peppe @ 2007-11-26 12:13 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > % echo dma on | tee /dev/sdC0/ctl > /dev/sdD0/ctl i'm sure i'm being stupid here, but why is that better (or different) than: % echo dma on > /dev/sdD0/ctl % echo dma on > /dev/sdC0/ctl ? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Tip of the day... 2007-11-26 12:13 ` roger peppe @ 2007-11-26 20:18 ` lucio 0 siblings, 0 replies; 8+ messages in thread From: lucio @ 2007-11-26 20:18 UTC (permalink / raw) To: 9fans > % echo dma on > /dev/sdD0/ctl > % echo dma on > /dev/sdC0/ctl Because I often have to type it from the console and I find it terribly irritating to have to repeat that "echo dma on". Weird, but true. Just one of those things. ++L ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Tip of the day... 2007-11-26 9:18 [9fans] Tip " lucio 2007-11-26 12:13 ` roger peppe @ 2007-11-26 12:48 ` erik quanstrom 2007-11-26 17:18 ` Antonin Vecera 1 sibling, 1 reply; 8+ messages in thread From: erik quanstrom @ 2007-11-26 12:48 UTC (permalink / raw) To: 9fans how about #!/bin/rc # turn dma on with abandon # only sdata drives do this dma thing. # only tweek drives on this system (hence #S). d=`{awk '$2 == "ata" {print $1}'<'#S/sdctl'} for(i in '#S'/^$d^*/ctl) awk '$6 > 0 && $8 == 0 {print "echo dma on > " ENVIRON["i"]}'<$i | sed 's/#/''#''/g' | rc - erik ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Tip of the day... 2007-11-26 12:48 ` erik quanstrom @ 2007-11-26 17:18 ` Antonin Vecera 0 siblings, 0 replies; 8+ messages in thread From: Antonin Vecera @ 2007-11-26 17:18 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Nov 26, 2007 1:48 PM, erik quanstrom <quanstro@quanstro.net> wrote: > how about > > #!/bin/rc > # turn dma on with abandon > > # only sdata drives do this dma thing. > # only tweek drives on this system (hence #S). > d=`{awk '$2 == "ata" {print $1}'<'#S/sdctl'} > > for(i in '#S'/^$d^*/ctl) > awk '$6 > 0 && $8 == 0 {print "echo dma on > " ENVIRON["i"]}'<$i | > sed 's/#/''#''/g' | > rc > > - erik > /bin/dmaon Antonin ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-02-02 5:50 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-02-02 5:34 [9fans] tip of the day cinap_lenrek 2013-02-02 5:42 ` andrey mirtchovski 2013-02-02 5:50 ` cinap_lenrek -- strict thread matches above, loose matches on Subject: below -- 2007-11-26 9:18 [9fans] Tip " lucio 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
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).