From: David Tolpin <dvd@davidashen.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Novice question - run as other
Date: Wed, 17 Mar 2004 13:07:51 +0400 [thread overview]
Message-ID: <200403170907.i2H97psH083854@adat.davidashen.net> (raw)
In-Reply-To: <36fa252fff9f4cb8ae8642352754b58d@terzarima.net>
> >>My question was how to do the same from rc.
> >>@{echo -n none > '#c/user' ; while() {sleep 1} }
> >>succeeds but does not change the owner of the process. Why?
>
> aha! when that message arrived, i was just writing one to point out that you need to take
> care that you stay in the same process as changes #c/user. in the case above,
> it does indeed change for the process that writes to #c/user (ie, the echo -n none)
> but of course that process ends, and the parent shell carries on to run
> while() {...}
> which happens in a different process from the echo!
>
Thank you for the comment. I really don't realize a simple thing.
Will go and look into the source code of rc. I thought redirection
would mean I would modify rc's #c/user. I don't understand something
basic.
Thanks again
next prev parent reply other threads:[~2004-03-17 9:07 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200403161953.i2GJrNMv080779@adat.davidashen.net>
2004-03-16 22:54 ` 9nut
2004-03-17 7:18 ` David Tolpin
2004-03-17 8:10 ` Geoff Collyer
2004-03-17 8:24 ` David Tolpin
2004-03-17 8:55 ` Geoff Collyer
2004-03-17 9:04 ` David Tolpin
2004-03-17 9:19 ` Bruce Ellis
2004-03-17 10:31 ` boyd, rounin
2004-03-17 14:01 ` Dave Lukes
2004-03-17 16:22 ` [9fans] insularity rog
2004-03-17 16:32 ` Aharon Robbins
2004-03-17 16:36 ` suspect
2004-03-17 16:48 ` lucio
2004-03-17 18:09 ` Dave Lukes
2004-03-17 19:26 ` Fco.J.Ballesteros
2004-03-18 13:50 ` Dave Lukes
2004-03-17 22:48 ` Geoff Collyer
2004-03-17 23:11 ` David Presotto
2004-03-18 7:47 ` boyd, rounin
2004-03-18 2:45 ` boyd, rounin
2004-03-17 17:53 ` Dave Lukes
2004-03-17 19:12 ` Latchesar Ionkov
2004-03-17 18:56 ` vdharani
2004-03-18 2:39 ` boyd, rounin
2004-03-17 9:33 ` [9fans] Novice question - run as other 9nut
2004-03-17 8:54 ` David Tolpin
2004-03-17 8:56 ` Charles Forsyth
2004-03-17 9:07 ` David Tolpin [this message]
2004-03-17 9:17 ` Charles Forsyth
2004-03-17 9:28 ` David Tolpin
2004-03-17 10:08 ` 9nut
2004-03-17 12:43 David Presotto
2004-03-17 17:03 ` ron minnich
2004-03-17 17:13 ` rog
2004-03-17 17:13 ` David Presotto
2004-03-17 18:00 ` David Tolpin
2004-03-17 18:12 ` ron minnich
2004-03-17 18:14 ` David Presotto
2004-03-17 19:34 ` rog
2004-03-17 19:52 ` Russ Cox
2004-03-17 19:58 ` rog
2004-03-18 4:21 ` Martin C.Atkins
[not found] <200403170948.i2H9mi3W084127@adat.davidashen.net>
2004-03-17 18:24 ` 9nut
2004-03-18 7:38 ` boyd, rounin
2004-03-17 18:29 plan9fans
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=200403170907.i2H97psH083854@adat.davidashen.net \
--to=dvd@davidashen.net \
--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).