From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <36fa252fff9f4cb8ae8642352754b58d@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Novice question - run as other From: Charles Forsyth In-Reply-To: <200403170854.i2H8sk2J083766@adat.davidashen.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 17 Mar 2004 08:56:14 +0000 Topicbox-Message-UUID: 32bf99a8-eacd-11e9-9e20-41e7f4b1d025 >>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!