From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4cfecdf7a036a48ce135771f8ac3c228@hamnavoe.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] v8 shell From: Richard Miller In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sun, 16 Nov 2003 12:21:14 +0000 Topicbox-Message-UUID: 8ad929b6-eacc-11e9-9e20-41e7f4b1d025 > I suppose one could write a simple prefix command, taking a file name, > descriptor number, and command to run: > > rdwr /mnt/webcookies/http 4 'echo http://www.foo.baz >[1=4]; cat <[0=4]' Or generalise by adding a '-c command' option to syscall(1): syscall -c 'echo http://www.foo.baz >[1=3]; cat <[0=3]' open /mnt/webcookies/http 2 Then you could use it for other things, eg to execute a command as user none: syscall -c command write 3 none 4 >[3]/dev/user