From: Eoghan Sherry <ejsherry@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme(4) and addr=dot
Date: Sat, 6 Mar 2010 13:41:10 -0500 [thread overview]
Message-ID: <a2d238df1003061041s58f2f853q858353e83e41c789@mail.gmail.com> (raw)
In-Reply-To: <b3b4f6f31003051937g6d3821cam7f078870390c128a@mail.gmail.com>
> % {echo 'addr=dot'; 9p read acme/70/addr >[1=2]} | 9p write acme/70/ctl
> 0 0 %
>
> No help. Am I doing something wrong?
Addr is reset to 0,0 once opened. So, you need to perform these
operations in order: open addr; write ctl; then read addr.
There's a nice way to do this if you can give rc access to the acme
files (try 9pfuse(4) with FUSE).
;9pfuse unix!`{namespace}^/acme mnt
;<mnt/acme/1/addr{
echo 'addr=dot'>>mnt/1/ctl;
cat;
}
93 234 ;
By the way, your question motivated me to give 9pfuse a try. Also,
it lead to my realization that, in rc, you can put the redirections
in front of the command. Hooray!
Eoghan
next prev parent reply other threads:[~2010-03-06 18:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-06 3:37 Micah Stetson
2010-03-06 13:11 ` roger peppe
2010-03-06 15:13 ` David Leimbach
2010-03-06 15:16 ` erik quanstrom
2010-03-06 16:21 ` David Leimbach
2010-03-06 16:48 ` erik quanstrom
2010-03-06 19:52 ` David Leimbach
2010-03-06 18:34 ` roger peppe
2010-03-06 18:41 ` Eoghan Sherry [this message]
2010-03-06 18:54 ` Micah Stetson
2010-03-06 18:55 ` ron minnich
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=a2d238df1003061041s58f2f853q858353e83e41c789@mail.gmail.com \
--to=ejsherry@gmail.com \
--cc=9fans@9fans.net \
/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).