Professional Web Applications Themes

.profile issue - Sun Solaris

Hi Sorry to post such a lame question but can anyone help to tell me why I can't execute a .profile? the file is in the users homedir and has full execute permissions (for everyone at the moment) but the file does not set the variables as defined. Do I need a path to the users homedir set somehow? the passwd file contains the homedir and a ksh path. TIA fuzzy!!...

  1. #1

    Default .profile issue

    Hi

    Sorry to post such a lame question but can anyone help to tell me why
    I can't execute a .profile? the file is in the users homedir and has
    full execute permissions (for everyone at the moment) but the file
    does not set the variables as defined. Do I need a path to the users
    homedir set somehow? the passwd file contains the homedir and a ksh
    path.

    TIA
    fuzzy!!
    fuzzy Guest

  2. #2

    Default Re: .profile issue

    fuzzy !! <com-nspm> wrote: 
     

    In general, you don't ever execute .profile files. You log in and have
    your shell source it.

    the file is in the users homedir and has 

    You're misunderstanding what's occuring. When you execute a shell
    script, a new shell is launched, runs the program, and exits. All the
    variables were defined, but only in the new shell.

    If you set variables in the script, then you cannot execute it and have
    it affect your current shell. You must instead source the file.

    .. .profile

    --
    Darren Dunham com
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Guest

  3. #3

    Default Re: .profile issue

    On Thu, 09 Oct 2003 20:59:19 +0100, fuzzy !! <com-nspm> wrote: 

    Hi,
    If the question here is really "Why isn't my .profile executed when I
    logon in CDE" then the answer could be that "DTSOURCEPROFILE" is not
    set to true.

    You can check this by executing "set|grep DTSOURCEPROFILE"
    and set this in $HOME/.dtprofile

    Taco
    Taco Guest

  4. #4

    Default Re: .profile issue

    "Taco R. de Vries" wrote: 
    >
    > Hi,
    > If the question here is really "Why isn't my .profile executed when I
    > logon in CDE" then the answer could be that "DTSOURCEPROFILE" is not
    > set to true.
    >
    > You can check this by executing "set|grep DTSOURCEPROFILE"
    > and set this in $HOME/.dtprofile
    >
    > Taco[/ref]

    to the OP::

    And, if the above responses have not anaswered the question, please
    explain exactly what you mean. Is this a case of :

    1. su to the user and the .profile is not setting vars, etc?
    2. login as the user and the .profile vars are not set?
    3. typing sh ./.profile and a reply of "connot exec" or some such
    appears?
    4. a cron file for a part. user is having trouble?

    or something else. Details will get you a better answer.

    Speaking only for myself,

    Joe Durusau
    Joe Guest

Similar Threads

  1. How to profile FMS
    By nathanial in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: December 5th, 12:36 AM
  2. ICC Profile
    By Anthony Williams in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 2
    Last Post: August 3rd, 07:03 PM
  3. No Profile
    By Manda Luyong in forum Windows Setup, Administration & Security
    Replies: 3
    Last Post: July 16th, 11:10 PM
  4. user account - profile issue
    By Chris Jackson \(MVP\) in forum Windows XP/2000/ME
    Replies: 0
    Last Post: July 11th, 02:57 AM
  5. profile
    By Philip Brown in forum Sun Solaris
    Replies: 0
    Last Post: June 27th, 10:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139