From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <432DDDF4.1000402@comtv.ru> Date: Mon, 19 Sep 2005 01:36:52 +0400 From: Victor Nazarov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217 MIME-Version: 1.0 To: 9fans@cse.psu.edu Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] rc scripting questions Topicbox-Message-UUID: 8c66067e-ead0-11e9-9d60-3106f5b1d025 Hello. I use plan9 with drawterm under ms windows. I know the system very partial. So I'd like to ask some questions about rc scripting. 1) Rc seems to create new processes in the same process group as itself. So for example child process share it's environment variables with it's parent (rc). Is it wise? Any unix like scripts need to call rfork as their first command. Why is it so? 2) I'd like to get random numbers in rc script, but awk 'BEGIN { print rand }' allways give the same number. How can I get random numbers in rc scripts? 3) Is there any concept like unix sessions in plan9? If I cpu into the cpu server any program I've started will run until it suicide. Is it right? What should I do to end my drawterm session? How can I kill every process I've stated? -- Victor Nazarov http://vir.comtv.ru/ vir@comtv.ru