9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Victor Nazarov <vir@comtv.ru>
To: 9fans@cse.psu.edu
Subject: [9fans] rc scripting questions
Date: Mon, 19 Sep 2005 01:36:52 +0400	[thread overview]
Message-ID: <432DDDF4.1000402@comtv.ru> (raw)

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



             reply	other threads:[~2005-09-18 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-18 21:36 Victor Nazarov [this message]
2005-09-19  0:40 ` Russ Cox

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=432DDDF4.1000402@comtv.ru \
    --to=vir@comtv.ru \
    --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).