A Shell Question

Dave Ihnat ignatz at dminet.com
Mon Jan 9 15:21:16 UTC 2006


On Mon, Jan 09, 2006 at 09:53:48AM -0500, Tom Callahan wrote:
> you have the right idea. As far as getting your profile to load
> correctly after executing tcsh...either run "source /etc/profile" or ".
> /homedir/.tcshprofile" note the space after the period.

Also, do "exec tcsh -l" instead of running it from the CLI; this will
replace your shell process with tcsh, instead of running it as a child,
and tell it that it's a login shell, so it should do normal startup
processing.

> I guess you could create a wrapper of sorts to act as your
> shell, and depening on the returned $HOSTNAME variable launch the
> appropriate shell....not sure if this would work though.

You could check how you're logging in--e.g., on 'pts' or somesuch--or you
could just have the login script *ask* if you want to switch to tcsh.
--
	Dave Ihnat
	ignatz at dminet.com




More information about the redhat-list mailing list