Re: .profile question

From: all mail refused (elvis_at_notatla.org.uk)
Date: 08/27/03


Date: 27 Aug 2003 18:51:17 GMT

In article <biibbh$t05$1@news-reader2.wanadoo.fr>, Philippe.Dimonte wrote:

>I try to change the original shell by a program of my own but i don't know
>how to execute the .profile
>file from my program in order to keep the ENV variables created. Any idea ?

When a shell starts it conventionally looks at the argv[0] value,
which if it startes with a '-' means this is a login shell and the
.profile or equivalent is used.
man execl (among others)

Are you sure you don't just want to run another program from
.profile with a standard shell ?

-- 
<peter30kyari@zwallet.com> AWAIT[S] YOUR  URGENT  RESPONCE
5% will be use for upsetting all the expenses
office@register828.com


Relevant Pages

  • Re: bash profile not sourced under X
    ... > which you could ensure that your profile was executed. ... Far be it for me to point out the obvious idiocy in that plan... ... profile would it execute? ... A clued user takes steps within the mechanisms of whatever shell ...
    (Debian-User)
  • Re: Random psh stuff.
    ... The PowerShell model supports the concept of multiple shells. ... the PowerShell.exe console application is the main shell. ... you would use the $profile variable. ... Current user profile is loaded from "<My ...
    (microsoft.public.windows.server.scripting)
  • 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 make colour prompts for pdksh
    ... The .profile is always gets parsed (both in a login and a non-login ... your login shell, so your prompts will still be set, etc. ... your aliases would be there too. ... You need to export ENV. ...
    (Debian-User)
  • Re: some queris on .profile file
    ... I have created a new user on .profile file and was modifying the ... .profile file.but I do find some of the things while I login which ... Are we changing the shell here? ... Do we need this emacs setting? ...
    (comp.unix.tru64)