- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to end a user's CDE session
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
03-26-2004 10:38 AM
03-26-2004 10:38 AM
if you have a non-zero exit code in Xstartup or in one of the Xsession scripts, the users session will be terminated but the dthello screen never gets displayed.
anyone have any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2004 08:43 PM
03-27-2004 08:43 PM
SolutionTo end the CDE session of a user, do the following :
login to its machine as root
# ps -ef | grep -i dtsession
you will see the process of the CDE session of that user ( or even others also )
you can kill the proces by :
kill PID
Tamer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 05:29 PM
03-28-2004 05:29 PM
Re: how to end a user's CDE session
dtlogin could be restated.
but, you end up with a process something like this:
running a process from Xstartup that will detect when dthello has finished, then kill dtlogin. Then to restart dtlogin, run an at job that will run at now+ some seconds.
any suggestions that aren't so complicated?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 02:11 AM
03-29-2004 02:11 AM
Re: how to end a user's CDE session
I use this method always to terminate any session , and -of course- the login screen is appaeared again.
But you should kill dtsession not dtlogin.
Tamer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:11 AM
03-29-2004 07:11 AM
Re: how to end a user's CDE session
you are right. if I kill dtsession as you suggested, that will terminate the session and the login screen will return, just as I'm wanting to occur.
Just one more wrinkle though. How do I know which dtsession is associated with the login on that is occuring.
what i'm doing is creating a backgroup process that runs from Xstartup that will kill the dtsession. But, when Xstartup is run dtsession hasn't started yet. So, the background proccess has to wait till dtsession is running, then kill it. Which is pretty easy to do when there is only one possible dtsession. But, suppose someone is logged in via a X-terminal. Now, there already is a dtsession running. I suppose I could just kill the next dtsession that started, but still would that dtsesstion be associated with this login and not another dtsession of another login occuring at nearly the same time.
I hope you understand the issue I'm having and can provide some suggestions?
thanks,
curt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 04:49 PM
03-29-2004 04:49 PM