- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sending logout for a user fro a script shell
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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-12-2004 03:38 AM
07-12-2004 03:38 AM
I've to do a shell script which run an application and after having done it will logout the user .
I run this script in .profile of user an currently I succeed in doing it by this command:
kill -9 `who -mu | awk '{print $7}'`.
But I don't want to use the kill command.
Any suggestion?
Thanks
Fabrizio
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:42 AM
07-12-2004 03:42 AM
Re: Sending logout for a user fro a script shell
Have you tried the exit command?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:45 AM
07-12-2004 03:45 AM
Re: Sending logout for a user fro a script shell
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:50 AM
07-12-2004 03:50 AM
Re: Sending logout for a user fro a script shell
This way once the user is done with the application, he will be logged out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:52 AM
07-12-2004 03:52 AM
Re: Sending logout for a user fro a script shell
usual stuuff.
application to execute
exit
This should do what you want
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:55 AM
07-12-2004 03:55 AM
Re: Sending logout for a user fro a script shell
# usermod -s /opt/app/app2/binary username
Now whenever the user logs in your application gets executed and when he exits out of the application, the user is logged out of the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 03:57 AM
07-12-2004 03:57 AM
Re: Sending logout for a user fro a script shell
Hi all
Fabrizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 04:08 AM
07-12-2004 04:08 AM
Re: Sending logout for a user fro a script shell
export SAM=123
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 04:10 AM
07-12-2004 04:10 AM
Re: Sending logout for a user fro a script shell
the exec before the command it's the best way but how this command works ?
Thanks Fabrizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 04:15 AM
07-12-2004 04:15 AM
Re: Sending logout for a user fro a script shell
exec <script_name>