problem with execution on .profile

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default problem with execution on .profile

    Hi group,
    I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    understand .profile shud execute everytime i open terminal using
    dtterm(winterm). But its not happening in case of these two m/cs. I
    have been executing it explicitly after opening terminal.

    But .profile gets executed when i telnet(rsh) on these m/cs.

    Can somebody enlighten me the reason behind this?
    Some references or advise on good admin book are welcome.

    thanks in advance
    abhijeet
    Abhijeet Guest

  2. Similar Questions and Discussions

    1. W2K Server Profile Problem
      Hi All, I have a Windows 2000 Server running and I have setup a mandatory profile that all users use when logging in. The users login from...
    2. Mandatory Profile Problem
      Hi All, I have a Windows 2000 Server running and I have setup a mandatory profile that all users use when logging in. The users login from...
    3. 4gl interactive debugger execution problem
      Hi! I've installed the IBM Informix 4gl interactive debugger 7.30.UC5 in the path /opt/informix/4glid/7.30.UC5. No other Informix products are...
    4. ICC Profile
      I have noticed several previous on this topic and have done all that has been said so far but with no success. When I load Photoshop (v7.0.1) I...
    5. profile
      On Fri, 20 Jun 2003 12:48:14 +1200, c_n_nz@hotmail.com wrote: btw: the latest version of pkg-get, also looks in /usr/sfw/bin for wget. Which if...
  3. #2

    Default Re: problem with execution on .profile

    "Abhijeet" <abhi_10dulkr@indiatimes.com> schrieb im Newsbeitrag
    news:f0bf477c.0404050109.3f9bc4bc@posting.google.c om...
    > Hi group,
    > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > understand .profile shud execute everytime i open terminal using
    > dtterm(winterm). But its not happening in case of these two m/cs. I
    > have been executing it explicitly after opening terminal.
    >
    > But .profile gets executed when i telnet(rsh) on these m/cs.
    >
    > Can somebody enlighten me the reason behind this?
    > Some references or advise on good admin book are welcome.
    >
    > thanks in advance
    > abhijeet
    Hallo abhijeet,

    not sure about the Solaris thing but to use X-apps with AIX you need to have
    a .dtprofile with an activated
    DTSOURCEPROFILE=true
    line (e.g. remove the # to uncomment). This will load your .profile. Mind
    that AIX ksh expects aliases and functions in a separate .kshrc which again
    is activated by the ENV variable from the .profile.
    export ENV=~/.kshrc

    HTH,
    Andreas


    Andreas Schulze Guest

  4. #3

    Default Re: problem with execution on .profile

    Abhijeet wrote:
    > Hi group,
    > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > understand .profile shud execute everytime i open terminal using
    > dtterm(winterm). But its not happening in case of these two m/cs. I
    > have been executing it explicitly after opening terminal.
    >
    > But .profile gets executed when i telnet(rsh) on these m/cs.
    >
    > Can somebody enlighten me the reason behind this?
    > Some references or advise on good admin book are welcome.
    >
    > thanks in advance
    > abhijeet
    The ".profile" is read only by login shells. When you rsh, you're
    creating a login shell; when you open a terminal in an existing session,
    you create a non-login shell. Keep "one-time" stuff, e.g. the setting
    of exported environment variables, in .profile. Move per-shell stuff,
    e.g. alias definitions, to .kshrc.
    Jeff Schwab Guest

  5. #4

    Default Re: problem with execution on .profile

    [email]abhi_10dulkr@indiatimes.com[/email] (Abhijeet) wrote in message news:<f0bf477c.0404050109.3f9bc4bc@posting.google. com>...
    > Hi group,
    > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > understand .profile shud execute everytime i open terminal using
    > dtterm(winterm). But its not happening in case of these two m/cs. I
    > have been executing it explicitly after opening terminal.
    >
    > But .profile gets executed when i telnet(rsh) on these m/cs.
    >
    > Can somebody enlighten me the reason behind this?
    > Some references or advise on good admin book are welcome.
    >
    > thanks in advance
    > abhijeet
    Perhaps you should look into using ~/.dtprofile ?

    BV
    Bill Guest

  6. #5

    Default Re: problem with execution on .profile

    [email]abhi_10dulkr@indiatimes.com[/email] (Abhijeet) wrote in message news:<f0bf477c.0404050109.3f9bc4bc@posting.google. com>...
    > Hi group,
    > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > understand .profile shud execute everytime i open terminal using
    > dtterm(winterm). But its not happening in case of these two m/cs. I
    > have been executing it explicitly after opening terminal.
    >
    > But .profile gets executed when i telnet(rsh) on these m/cs.

    Remove the hash "#" in the line:
    # DTSOURCEPROFILE=true

    from the file: .dtprofile in your home directory.

    Steve
    Steve Nottingham Guest

  7. #6

    Default Re: problem with execution on .profile

    Thank you guys for your responses,
    its working fine now.
    regards
    abhijeet

    [email]steve@wakefieldrfc.freeserve.co.uk[/email] (Steve Nottingham) wrote in message news:<42862645.0404050706.193f7d87@posting.google. com>...
    > [email]abhi_10dulkr@indiatimes.com[/email] (Abhijeet) wrote in message news:<f0bf477c.0404050109.3f9bc4bc@posting.google. com>...
    > > Hi group,
    > > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > > understand .profile shud execute everytime i open terminal using
    > > dtterm(winterm). But its not happening in case of these two m/cs. I
    > > have been executing it explicitly after opening terminal.
    > >
    > > But .profile gets executed when i telnet(rsh) on these m/cs.
    >
    >
    > Remove the hash "#" in the line:
    > # DTSOURCEPROFILE=true
    >
    > from the file: .dtprofile in your home directory.
    >
    > Steve
    Abhijeet Guest

  8. #7

    Default Re: problem with execution on .profile


    "Andreas Schulze" <b79xan@gmx.de> wrote in message
    news:c4ri7l$2lgoef$1@ID-208966.news.uni-berlin.de...
    > "Abhijeet" <abhi_10dulkr@indiatimes.com> schrieb im Newsbeitrag
    > news:f0bf477c.0404050109.3f9bc4bc@posting.google.c om...
    > > Hi group,
    > > I am having AIX & Solaris m/c. My default shell is ksh. As per as i
    > > understand .profile shud execute everytime i open terminal using
    > > dtterm(winterm). But its not happening in case of these two m/cs. I
    > > have been executing it explicitly after opening terminal.
    > >
    > > But .profile gets executed when i telnet(rsh) on these m/cs.
    > >
    > > Can somebody enlighten me the reason behind this?
    > > Some references or advise on good admin book are welcome.
    > >
    > > thanks in advance
    > > abhijeet
    >
    > Hallo abhijeet,
    >
    > not sure about the Solaris thing but to use X-apps with AIX you need to
    have
    > a .dtprofile with an activated
    > DTSOURCEPROFILE=true
    > line (e.g. remove the # to uncomment). This will load your .profile. Mind
    > that AIX ksh expects aliases and functions in a separate .kshrc which
    again
    > is activated by the ENV variable from the .profile.
    > export ENV=~/.kshrc
    >
    > HTH,
    > Andreas
    >
    >

    Arbab f Ahmed Guest

  9. #8

    Default Re: problem with execution on .profile

    On 6 Apr 2004 00:37:06 -0700, Abhijeet <abhi_10dulkr@indiatimes.com> wrote:
    > Thank you guys for your responses,
    > its working fine now.
    > regards
    > abhijeet
    Glad to hear it. Maybe you could not top-post responses?

    Dave Hinz Guest

Posting Permissions

  • You may not post new threads
  • You may 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