- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: separate HISTFILE for each Terminal in CDE
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
Forums
Discussions
Discussions
Discussions
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
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
02-16-2001 03:05 AM
02-16-2001 03:05 AM
I want to create a separate HISTFILE for each terminal session in CDE. I think I can build a unique filename by evaluation the tty command. I have put the following lines an my .profile
TTY=`tty`
TTYNR=`basename $TTY`
HISTSIZE=1000
HF="$HOME/histfiles/$TTYNR.his"
HISTFILE=$HF
export HISTFILE HISTSIZE
but I thing this doesn't work if I open a terminal in CDE.
How can I solve this problem?
Thanks
Marco
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 03:13 AM
02-16-2001 03:13 AM
Solutiondtterm -ls ...... any joy ?
same will be true for hpterm ot xterm ..... -ls forces the .profile to be read.
see man dtterm etc : can also be set as a resource : loginShell : true in $HOME/.Xdefaults ..... it may help ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2001 08:27 AM
02-19-2001 08:27 AM
Re: separate HISTFILE for each Terminal in CDE
if [ ! -f ${HISTFILE} ]
then
touch $HISTFILE
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2001 08:36 AM
02-19-2001 08:36 AM
Re: separate HISTFILE for each Terminal in CDE
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2001 12:24 PM
02-19-2001 12:24 PM
Re: separate HISTFILE for each Terminal in CDE
HISTFILE=$HOME/histfiles/.ksh_history.$HOSTNAME.$$
it doesn't guarantee a unique hist file but it is good enough...
Lyle Merdan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2001 12:37 AM
02-26-2001 12:37 AM
Re: separate HISTFILE for each Terminal in CDE
thanks for this answer. ererything works fine
Marco