HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Different behavior in two login sessions
Operating System - HP-UX
1836645
Members
1725
Online
110102
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
12-19-2001 02:52 PM
12-19-2001 02:52 PM
Different behavior in two login sessions
Hi,
Here is a seris of commands, which I ran at the interactive shell (KSH).
prog arg1 arg2 > log 2> err &
tail ???f err
I hit Ctrl C to terminate the tail ???f and prog terminated prematurely. I verified that via the message from the prog app. I repeated the above steps three times and each time the application stopped execution when I hit Ctrl C to stop the tail ???f. This behavior appeared strange to me.
I logged out and started a new session with no problems. I am trying to figure out why I had a problem in the first session.
I remember doing something with the set ???o options in the first session particularly with notify and monitor. Nevertheless, I could not get the behavior from the first session.
Any ideas?
Thanks,
Leslie
Here is a seris of commands, which I ran at the interactive shell (KSH).
prog arg1 arg2 > log 2> err &
tail ???f err
I hit Ctrl C to terminate the tail ???f and prog terminated prematurely. I verified that via the message from the prog app. I repeated the above steps three times and each time the application stopped execution when I hit Ctrl C to stop the tail ???f. This behavior appeared strange to me.
I logged out and started a new session with no problems. I am trying to figure out why I had a problem in the first session.
I remember doing something with the set ???o options in the first session particularly with notify and monitor. Nevertheless, I could not get the behavior from the first session.
Any ideas?
Thanks,
Leslie
If life serves you lemons, make lemonade
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2001 10:04 PM
12-19-2001 10:04 PM
Re: Different behavior in two login sessions
Hi,
You might take a look at the man pages for the ksh. I found the following :
"Jobs ... If the monitor option of the set command is turned on, an interactive shell associates a job with each pipeline ..."
The explanation continues for a while, and then goes on to ...
"Signals ... The INT and QUIT signals for an invoked command are ignored if the command is followed by & and the monitor option is off. Otherwise, signals have the values inherited by the shell from its parent, with the exception of signal 11 (but see also the trap command below) ..."
Which (in my poor understanding of the ksh) may mean that hitting CTRL-C would send a signal to ALL "jobs" running under the shell if the monitor is on ...
Hope this helps,
Tom Geudens
You might take a look at the man pages for the ksh. I found the following :
"Jobs ... If the monitor option of the set command is turned on, an interactive shell associates a job with each pipeline ..."
The explanation continues for a while, and then goes on to ...
"Signals ... The INT and QUIT signals for an invoked command are ignored if the command is followed by & and the monitor option is off. Otherwise, signals have the values inherited by the shell from its parent, with the exception of signal 11 (but see also the trap command below) ..."
Which (in my poor understanding of the ksh) may mean that hitting CTRL-C would send a signal to ALL "jobs" running under the shell if the monitor is on ...
Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP