Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* "rsh" doesn't read .login file but only .cshrc file
@ 1997-01-24  5:00 Yon Han Chong
  1997-01-24  5:00 ` Michael D. Beynon
  1997-01-25  5:00 ` Oliver Brandt
  0 siblings, 2 replies; 3+ messages in thread
From: Yon Han Chong @ 1997-01-24  5:00 UTC (permalink / raw)



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.

At the moment I have put the "path" command in .cshrc file so I have to
live with ever growing path list but is there nice solution for this.
Currently I am using OSF1 digital unix operating system.

-- 
----------------------------------------------------------------------
Yon Han Chong                     |
Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext.5356
Cranfield College of Aeronautics  | Fax: + 44 1234 752 149
Cranfield University              | E-mail: Y.H.Chong@cranfield.ac.uk
United Kingdom                    |
----------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "rsh" doesn't read .login file but only .cshrc file
  1997-01-24  5:00 "rsh" doesn't read .login file but only .cshrc file Yon Han Chong
@ 1997-01-24  5:00 ` Michael D. Beynon
  1997-01-25  5:00 ` Oliver Brandt
  1 sibling, 0 replies; 3+ messages in thread
From: Michael D. Beynon @ 1997-01-24  5:00 UTC (permalink / raw)



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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "rsh" doesn't read .login file but only .cshrc file
  1997-01-24  5:00 "rsh" doesn't read .login file but only .cshrc file Yon Han Chong
  1997-01-24  5:00 ` Michael D. Beynon
@ 1997-01-25  5:00 ` Oliver Brandt
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Brandt @ 1997-01-25  5:00 UTC (permalink / raw)



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.
> 
> At the moment I have put the "path" command in .cshrc file so I have to
> live with ever growing path list but is there nice solution for this.
> Currently I am using OSF1 digital unix operating system.
> 

perhaps something like this will work:

rsh host "( source .login ; command ... )" 

ob



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-01-25  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-24  5:00 "rsh" doesn't read .login file but only .cshrc file Yon Han Chong
1997-01-24  5:00 ` Michael D. Beynon
1997-01-25  5:00 ` Oliver Brandt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox