Re: How to launch ksh/bash when default shell is csh

From: Bill Marcum (bmarcum_at_iglou.com)
Date: 07/03/03


Date: Thu, 3 Jul 2003 05:33:33 -0400

On 2 Jul 2003 22:07:45 -0700, ajay
  <ajay_kumarsingh@yahoo.com> wrote:
> Hi All,
> I want to launch ksh/bash at login (default shell is csh on my system
> and i'm not admin so i can't change default shell)
>
> how i'm trying to do is this:
>
> in .login file i added this line:
>
> exec /bin/ksh
>
> ksh is started but .profile is not getting executed.
> Isn't .profile is executed everytime when a ksh is started.
> so how to make .profile executed ?
>
.profile is executed when ksh is started as a login shell. Try
exec /bin/ksh -l

-- 
It is often the case that the man who can't tell a lie thinks he is the best
judge of one.
		-- Mark Twain, "Pudd'nhead Wilson's Calendar"


Relevant Pages

  • Re: How to launch ksh/bash when default shell is csh
    ... :> I want to launch ksh/bash at login (default shell is csh on my system ... :> Isn't .profile is executed everytime when a ksh is started. ...
    (comp.unix.shell)
  • Re: No sourcing of ~/.profile at login
    ... default shell the same way /bin/login knows (and invokes an instance ... Did anyone suggest that Xsession should load .profile directly? ... > would prevent the login from happening. ...
    (Debian-User)
  • Re: Add to $PATH how?
    ... are sourced at the start of a "login" shell. ... the idea is that the .profile holds things that need doing exactly ... processes this need only happen once, and fresh interactive shells do ...
    (Fedora)
  • Re: How to launch ksh/bash when default shell is csh
    ... > I want to launch ksh/bash at login (default shell is csh on my system ... > Isn't .profile is executed everytime when a ksh is started. ...
    (comp.unix.shell)
  • Re: No sourcing of ~/.profile at login
    ... login process) know your ... won't know about my own whizzy furblyburb shell. ... That implied to me the .profile. ... My preferred login method for years was the terminal console and I ...
    (Debian-User)