HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- traps with CDE
Operating System - HP-UX
1825793
Members
2285
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-24-2004 10:13 PM
11-24-2004 10:13 PM
traps with CDE
I use a trap in my .profile to empty a logfile when sending the EXIT signal.
As long as I work in terminal session, it is executing the trap - when I use CDE, it is not executing the trap.
In the .dtprofile, DTSOURCEPROFILE=true is set.
Can someone help me to solve this small problem
Thanks
Carine
As long as I work in terminal session, it is executing the trap - when I use CDE, it is not executing the trap.
In the .dtprofile, DTSOURCEPROFILE=true is set.
Can someone help me to solve this small problem
Thanks
Carine
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:19 AM
11-26-2004 02:19 AM
Re: traps with CDE
1. Be careful that your .profile doesn't contain any terminal specific code such as stty or $TERM. If it does you need to wrap it to protect it from the CDE.
e.g.
if [ ! "$DT" ]
then
term specific stuff like stty etc
fi
rest of stuff
2. Create a file $HOME/.Xdefaults (if it doesn't already exist). Add a line
*loginShell:TRUE
3. If you get an error on (1) complaining that DT is not set, you might have 'set -u' in your profile. If you do use 'set +u' just before the test and restore it with 'set -u' just after the test.
e.g.
if [ ! "$DT" ]
then
term specific stuff like stty etc
fi
rest of stuff
2. Create a file $HOME/.Xdefaults (if it doesn't already exist). Add a line
*loginShell:TRUE
3. If you get an error on (1) complaining that DT is not set, you might have 'set -u' in your profile. If you do use 'set +u' just before the test and restore it with 'set -u' just after the test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:23 AM
11-26-2004 02:23 AM
Re: traps with CDE
Better to set the environment variable in the .dtprofile
That way you don't mess up ssh/telnet users when they log onto the system.
SEP
That way you don't mess up ssh/telnet users when they log onto the system.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP