- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to get pty
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
Discussions
Discussions
Forums
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
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
тАО05-31-2008 10:32 PM
тАО05-31-2008 10:32 PM
Re: unable to get pty
Dear Dennis,
Thanks for your response and sorry to be late.
the the result of "ps -fu" command for user named "noc" is attached.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2008 10:57 PM
тАО05-31-2008 10:57 PM
Re: unable to get pty
You need to use this exact command, so -H works.
UNIX95= ps -Hfu noc
noc seems to have a bunch of old (May 27):
/usr/dt/bin/dtexec -open ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2008 11:17 PM
тАО05-31-2008 11:17 PM
Re: unable to get pty
Dear Dennis,
It seems that my system doesn't support this option.
I got this error "ps: illegal option -- H".
Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 02:02 AM
тАО06-01-2008 02:02 AM
Re: unable to get pty
Are you using a real shell? Did you type the line exactly how I showed:
UNIX95= ps -Hfu noc
You can also add "-x" to get more of the command lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 02:11 AM
тАО06-01-2008 02:11 AM
Re: unable to get pty
Dear Dennis,
Thanks for your interest.
Really, I ran the command without "UNIX95=",
so kindly tell me what does it mean?
The results of "UNIX95= ps -Hfu noc" and "UNIX95= ps -Hxfu noc" are attached.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 02:23 AM
тАО06-01-2008 02:23 AM
Re: unable to get pty
It basically temporarily exports UNIX95 during the ps(1) command. Exporting this causes commands to conform to UNIX 95 Standard and makes available extra ps(1) options like -A, -C, -c, -g, -j, -n, -o, -s, -U, -H and -x.
The reason you don't export it permanently is there are all sorts of side effects for other commands. :-)
>The results of ... are attached.
Please provide a simple .txt file with both outputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 02:34 AM
тАО06-01-2008 02:34 AM
Re: unable to get pty
Dear Dennis,
The file is attached.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 03:50 AM
тАО06-01-2008 03:50 AM
Re: unable to get pty
You have a bunch of these old processes whose parent is init, 1:
/usr/dt/bin/dtexec -open -1 ... /home/noc/xnmevents.sh
Do you know that that xnmevents.sh script does?
Is this something to do with OpenView?
You seem to have one that its still active:
noc 11291 11289 /usr/dt/bin/dtexec ... /home/noc/xnmevents.sh
noc 11292 11291 /bin/sh /home/noc/xnmevents.sh
noc 11293 11292 /opt/OV/bin/xnmevents
Perhaps you can fix it so when xnmevents.sh dies, it kills its parent?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 04:39 AM
тАО06-01-2008 04:39 AM
Re: unable to get pty
Dear Dennis,
The script just execute the "xnmevents" command which launch the OpenView Alarm Browser.
But I don't know how to kill this process when the "xnmevents.sh" dies.
any way, Is there any way to kill these processes manually?
Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2008 09:44 PM
тАО06-01-2008 09:44 PM
Re: unable to get pty
Any reason you need this since it causes so many problems?
>But I don't know how to kill this process when the "xnmevents.sh" dies.
I suppose you could have a trap for signal 1 (SIGHUP) and then wait N seconds and then kill your parent, since he is unmutual?
>Is there any way to kill these processes manually?
Well, that should be easy. If there is more than one, and it is old, just use kill on that dtexec process.
If that fails, use "kill -9".