- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script command hung on exit
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
10-10-2002 05:26 AM
10-10-2002 05:26 AM
script command hung on exit
I'm logging the user sesion with script command, put in /etc/profile, but when the user exit the session, the session is hung. The big problem is when this occurr in the console of the server. I'm using HPUX 10.20.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 05:31 AM
10-10-2002 05:31 AM
Re: script command hung on exit
What is your command?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 05:34 AM
10-10-2002 05:34 AM
Re: script command hung on exit
He's put the "script" command into the user's profile in order to log the entire session - see man script.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 08:54 AM
10-10-2002 08:54 AM
Re: script command hung on exit
How is `script` invoked in the profile? I would use 'exec script' at the very end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 09:09 AM
10-10-2002 09:09 AM
Re: script command hung on exit
At the end of the /etc/profile, I put the command " exec script
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 10:49 AM
10-10-2002 10:49 AM
Re: script command hung on exit
Can you tell if the user has any jobs in the background? If these need to continue running, then they should be invoked in a manner that prevents their stdio from attaching to the terminal device. For example:
batch < scriptfile
batch <<.
commands &
.
at now < scriptfile
at now <<.
commands &
.
and a favorite on the forums:
nohup command /dev/null 2>&1 &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:35 PM
10-10-2002 11:35 PM
Re: script command hung on exit
Yes I got the Script bit but was wondering about the format.
By using ???exec script
Try it without the exec.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:38 PM
10-10-2002 11:38 PM
Re: script command hung on exit
Yes I got the Script bit but was wondering about the format.
By using ???exec script
Try it without the exec.
Also:-
Try not to use the console for anything else but critical system administration tasks - it is your last line of defence.
e.g. locked console and telnet not working = reboot
HTH
Paula