Re: .profile question
From: Corné Beerse (I.Dont_at_want.your.spam)
Date: 08/27/03
- Next message: Rick Jones: "Re: TP-C between N-class and IBM Regatta"
- Previous message: Anton Ertl: "Re: executing code in mmapped memory"
- In reply to: Philippe.Dimonte: ".profile question"
- Next in thread: all mail refused: "Re: .profile question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Aug 2003 17:31:20 +0200
"Philippe.Dimonte" wrote:
>
> HI,
>
> I try to change the original shell by a program of my own but i don't know
chsh is your command to change the login shell. It most times only
allows a pre-devined list of shells. See manpage on chsh for details.
> how to execute the .profile
Not all shells do use .profile, specially the csh and variants, they use
.login and .cshrc. read manual pages on shells for details.
> file from my program in order to keep the ENV variables created. Any idea ?
ENV variables are propagated from parent process ot child process. The
shell is just a program. On the other hand, to change or create
environment variables, see the manual of your shell for details.
Roughly: sh and variants just `set` a variable and then `export` them to
the environment. chs and variants have a command `setenv` that directly
sets an environment variable.
>
> Any help would be appreciatd, Thanks!
What are you doing, writing your own shell without knowing the available
alternatives? Or just tweaking a program that starts a shell but you
want it to start something else?
I once wrote a bare-minimal shell in about 100 lines (it fittet on 2
pages ribbon paper) It could do forground commands, background commands,
pipelines, i/o redirection and environment variables. Unfortunatly, I
lost the source...
CBee
- Next message: Rick Jones: "Re: TP-C between N-class and IBM Regatta"
- Previous message: Anton Ertl: "Re: executing code in mmapped memory"
- In reply to: Philippe.Dimonte: ".profile question"
- Next in thread: all mail refused: "Re: .profile question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|