- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to logout from the login session through a scr...
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-25-2002 08:45 PM
03-25-2002 08:45 PM
We are running some login session on client sides to execute autamated scripts. I wander how could we can logout from the sessions through the scripts rather than typing exit.
Thanks in advance
Nisar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 08:53 PM
03-25-2002 08:53 PM
Re: How to logout from the login session through a script ?
The easiest way would be to run the script through nohup. That way you could login, start the script and log out and check later.
# nohup /usr/local/bin/myscript &
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 11:16 PM
03-25-2002 11:16 PM
Solution$ cat xx
echo "This script will be exec'ed"
echo BYE
$ exec xx
Connection to host lost.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 11:55 PM
03-25-2002 11:55 PM
Re: How to logout from the login session through a script ?
If it is only a script then put your script as the login program like this
name:passwd:416:40:Details:home:/tmp/yoyo
and declare your shell in the script like this
Program /tmp/yoyo
#!/bin/ksh
read a
if [ "$a" = "y" ]
then
echo ok
fi
ps -ef
exit
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:22 AM
03-26-2002 01:22 AM
Re: How to logout from the login session through a script ?
See this thread: http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a7d50011d20d6118ff40090279cd0f9,00.html
Hope this helps.
