pterm ksh and profile

After booting 6.1 there is a graphical login on the console. After logging in as root,
photon comes up. If I now start a terminal, where does the ‘ksh’ that runs in the pterm
source it’s profile? It’s not reading /etc/profile, or /root/.profile (I think this would only
occur if I did a remote login). I cant find that it sources anything.


Art Hays
National Institutes of Health
avhays@nih.gov

Run ‘pterm -l’ instead. You can set it by configuring your shelf and also
by editing $HOME/.ph/wm/wm.menu.

cheers,

Kris

“Art Hays” <avhays@nih.gov> wrote in message
news:a7ehpm$s43$1@inn.qnx.com

After booting 6.1 there is a graphical login on the console. After
logging in as root,
photon comes up. If I now start a terminal, where does the ‘ksh’ that
runs in the pterm
source it’s profile? It’s not reading /etc/profile, or /root/.profile (I
think this would only
occur if I did a remote login). I cant find that it sources anything.


Art Hays
National Institutes of Health
avhays@nih.gov

This is helpful. I am still interested in knowing where the default environment
and variables come from when a ksh is started. Are these compiled in?

Art

“Kris Warkentin” <kewarken@qnx.com> wrote in message news:a7fhg9$3ph$1@nntp.qnx.com

Run ‘pterm -l’ instead. You can set it by configuring your shelf and also
by editing $HOME/.ph/wm/wm.menu.

cheers,

Kris

“Art Hays” <> avhays@nih.gov> > wrote in message
news:a7ehpm$s43$> 1@inn.qnx.com> …
After booting 6.1 there is a graphical login on the console. After
logging in as root,
photon comes up. If I now start a terminal, where does the ‘ksh’ that
runs in the pterm
source it’s profile? It’s not reading /etc/profile, or /root/.profile (I
think this would only
occur if I did a remote login). I cant find that it sources anything.


Art Hays
National Institutes of Health
avhays@nih.gov
\

Actually, photon is started from a shell that has read /etc/profile. Once
you’re in photon though, /etc/profile isn’t read again (unless you do a
pterm -l) If you wanted a nice way to make sure that your local settings
get loaded, try exporting ‘ENV=$HOME/.kshrc’ in the /etc/profile and then
every shell you start should source that file. (Thanks Wojtek :wink: We
already try to do that in /etc/profile but the code is flawed - it tries to
set ENV=$HOME/$SHELL##* which doesn’t work (because your shell will be ‘sh’,
not ‘ksh’).

Cheers,

Kris
“Art Hays” <avhays@nih.gov> wrote in message
news:a7gkcm$fp3$1@inn.qnx.com

This is helpful. I am still interested in knowing where the default
environment
and variables come from when a ksh is started. Are these compiled in?

Art

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a7fhg9$3ph$> 1@nntp.qnx.com> …
Run ‘pterm -l’ instead. You can set it by configuring your shelf and
also
by editing $HOME/.ph/wm/wm.menu.

cheers,

Kris

“Art Hays” <> avhays@nih.gov> > wrote in message
news:a7ehpm$s43$> 1@inn.qnx.com> …
After booting 6.1 there is a graphical login on the console. After
logging in as root,
photon comes up. If I now start a terminal, where does the ‘ksh’ that
runs in the pterm
source it’s profile? It’s not reading /etc/profile, or /root/.profile
(I
think this would only
occur if I did a remote login). I cant find that it sources anything.


Art Hays
National Institutes of Health
avhays@nih.gov


\