- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- exceed and cde what happend to aliases
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:22 AM
тАО07-20-2000 07:22 AM
environemnt. I see that users .profile gets
executed. When I open a terminal session thru the personal application popup window and the dtterm window opens I have a session.
1. when I do the alias command, how come the aliases set in the .profile are not there?
They were exported.
2. PS1 was set in the .profile. How come I just get the geneic prompt of $
Thanks in advance
Eric Stewart
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:38 AM
тАО07-20-2000 07:38 AM
Re: exceed and cde what happend to aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:43 AM
тАО07-20-2000 07:43 AM
Re: exceed and cde what happend to aliases
It will then execute your .profile, which it does.
Also the default shell is ksh.
Am I missing something here?
Is ther something that gets executed after the .profile that removes the aliases set in the .profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:46 AM
тАО07-20-2000 07:46 AM
Re: exceed and cde what happend to aliases
Look at the comments near the bottom of .dtprofile in your $HOME directory and uncomment the DTSOURCEPROFILE env variable. This file is read by the dtsession manager (parent for dtterm and other icons in the window manager) so you'll have to log completely out and back in again to get the new .dtprofile to source .profile.
Now you could add the necessary customizations to .dtprofile since .profile might have settings or tests that require an interactive shell and these might fail when starting a graphics program. By selecting the ones you need, you can keep your graphical session separate from remote telnet logins.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:49 AM
тАО07-20-2000 07:49 AM
SolutionOr you can also add the following line to the .dtprofile to force .profile to be read:
DTSOURCEPROFILE=true; export DTSOURCEPROFILE
and create a $HOME/.Xdefaults file and add "*loginShell : True"
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 07:59 AM
тАО07-20-2000 07:59 AM
Re: exceed and cde what happend to aliases
When logging in via the gui you need to set DTSOURCEFILE=true as explained in the .dtprofile file.
when just starting a dtterm window, you'll probably need to specify the -ls option to dtterm to have the shell read it's dot file. dtterm's default is not to read them.
You'll probably want to add a few other things such as geometry(window size), scroll bars, etc.
Look at the man page for dtterm for the various options and their syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 08:01 AM
тАО07-20-2000 08:01 AM
Re: exceed and cde what happend to aliases
you would have to edit your /usr/dt/config/sys.dtprofile to uncomment the line
# DTSOURCEPROFILE=true
to read
DTSOURCEPROFILE=true
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 08:03 AM
тАО07-20-2000 08:03 AM
Re: exceed and cde what happend to aliases
# @(#) $Revision: 72.2 $
if [ ! "$DT" ]; then
#
# commands and environment variables not appropriate for desktop
#
DISPLAY=mydisplay:0
stty erase "^?" kill "^U" intr "^C" eof "^D" columns 132
stty hupcl ixon ixoff
tabs
fi
# Set up the search paths:
PATH=$PWD/bin:$PATH
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
# Set up alias
alias px='ps -aef|grep -v grep | grep '
export px
PS1='${PWD} >'
Here is the display from the CDE terminal window:
$ alias
autoload=typeset -fu
false=let 0
functions=typeset -f
hash=alias -t -
history=fc -l
integer=typeset -i
nohup=nohup
r=fc -e -
stop=kill -STOP
suspend=kill -STOP $$
true=:
type=whence -v
$
Where is the prompt and aliases I expect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 08:40 AM
тАО07-20-2000 08:40 AM
Re: exceed and cde what happend to aliases
I take it that works? This would work for me, alias' included. but like I said
the at login the alias only were set when placed in the ENV file, which
for me is my .kshrc file.
You can also use brian fisher suggestion of using the .Xdefaults file to set up your scrollbars by adding:
Dtterm*saveLines: 8s
Dtterm*scrollBars: true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 08:45 AM
тАО07-20-2000 08:45 AM
Re: exceed and cde what happend to aliases
PS1="`pwd` >"
export PS1