home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.programmer
- Subject: Re: Need Information On rexec()
- Date: 11 Dec 1992 20:28:22 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 25
- Message-ID: <1gatl6INNmvg@early-bird.think.com>
- References: <1g65dhINNjqc@smurf.sti.com>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1g65dhINNjqc@smurf.sti.com> westes@smurf.sti.com (Will Estes) writes:
- >- Why does rexec() fail to invoke .login?
-
- Because it's just running a single command line, not starting up a full,
- interactive login session.
-
- >- Is it common practice to just leave your environment variables
- > in .cshrc?
-
- Yes. What you can do is write:
-
- if ( ! $? ENV_SET ) then
- setenv ...
- setenv ...
- ...
- setenv ENV_SET
- endif
-
- This way you won't re-execute all the environment variable settings for all
- sub-shells.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-