From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1147fc,3a53d18f2ac6572b X-Google-Attributes: gid1147fc,public X-Google-Thread: f72b0,3a53d18f2ac6572b X-Google-Attributes: gidf72b0,public X-Google-Thread: f678f,3a53d18f2ac6572b X-Google-Attributes: gidf678f,public From: "Michael D. Beynon" Subject: Re: "rsh" doesn't read .login file but only .cshrc file Date: 1997/01/24 Message-ID: <32E9437B.794BDF32@cs.umd.edu>#1/1 X-Deja-AN: 212075667 references: <32E8CBE6.41C6@cranfield.ac.uk> content-type: text/plain; charset=us-ascii organization: Computer Science Department, University of Maryland mime-version: 1.0 newsgroups: comp.parallel.mpi,comp.unix.misc,comp.unix.osf.misc nntp-posting-user: beynon x-mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.3 sun4m) Yon Han Chong wrote: > > I found out that "rsh" command execute only .cshrc file but not .login > file. Therefore if I put "path" command in .login file rsh cannot find > programs which is in private directory and if I put "path" command in > .cshrc file each time I open a cshell the length of the path get longer > and longer. I think a common solution is to have a unique envvar to control only doing certain things the first time. .cshrc: : : if (! ${?CSHRCFLAG}) then setenv CSHRCFLAG 1 # do .login style things here endif : : Mike.