Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!src.honeywell.com!msi.umn.edu!noc.MR.NET!gacvx2.gac.edu!gacvx2.gac.edu!scott Newsgroups: comp.sys.next Subject: Re: Running .cshrc Message-ID: From: scott@erick.gac.edu (Scott Hess) Date: 18 May 91 10:33:37 References: <1991May17.125630.2977@socrates.umd.edu> Organization: Gustavus Adolphus College Nntp-Posting-Host: erick.gac.edu In-reply-to: fletcher@socrates.umd.edu's message of 17 May 91 12:56:30 GMTLines: 29 In article <1991May17.125630.2977@socrates.umd.edu> fletcher@socrates.umd.edu (Charles Fletcher) writes: How do I know this?--Because I put some commands in the .cshrc file to power down the printer and set the background. Now at odd times (like running 'which') the printer goes on and off and the background flashs. Why do I care?--Because I don't like my printer going on and off and my background flashing! Anyone got any idea why this happens and what to do about it? .cshrc is run anytime a csh is run (or tcsh, or some other csh variant). Now, there are other special files. For instance .login. This is run under a special type of csh - a login shell. Then, it first sources the .cshrc, then the .login file. Generally, login shells are only invoked from from tty logins, or network logins, or (luckly enough), from Terminal or Stuart logins. So, maybe you could move the commands into your .login file, and mark SourceDotLogin in Stuart or Terminal (in Stuart, it's the "Shell reads .login file" switch in Preferences). Later, -- scott hess scott@gac.edu Independent NeXT Developer GAC Undergrad