The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What happens when user logout? yhacks Linux 1 05-16-2008 02:20 AM
Exit or logout kinai UNIX for Dummies Questions & Answers 1 04-14-2008 08:44 AM
.logout sharif SUN Solaris 3 12-24-2007 05:08 AM
.logout help 2dumb Shell Programming and Scripting 3 05-10-2007 11:49 AM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 07:23 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 06-20-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 968
Hey! That's quite cool!

But you need to qualify it...

i.e...

Code:
/root # 
/root # echo $0
-ksh
/root # echo $$
13898
/root # bash
/root # echo $$
13921
/root # ps -o "%P"
 PPID
13896
13898
13921
/root # ps -ef | grep 13[89][95]
root     13896     1  0 18:52 ?        00:00:01 /usr/bin/Terminal
root     13897 13896  0 18:52 ?        00:00:00 gnome-pty-helper
root     13898 13896  0 18:52 pts/0    00:00:00 -ksh
root     13951 13898  0 18:54 pts/0    00:00:00 bash
root     13973 13951  0 18:55 pts/0    00:00:00 ps -ef
root     13974 13951  1 18:55 pts/0    00:00:00 grep 13[89][95]
  #9 (permalink)  
Old 06-20-2009
pbillast pbillast is offline
Registered User
  
 

Join Date: Jun 2009
Location: Belgium, Mechelen
Posts: 15
as root, true
  #10 (permalink)  
Old 06-22-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Hey guys, although your posts are valuable, I would like you paying more attention to your replies:
This forum is for HP-UX, the thread mentions hp-UX 11.00, so giving answers like
ps -o "%P" is innapropiate:
Code:
ard # uname -r
B.11.00
ard #  ps -o "%P"
ps: illegal option -- o
usage: ps [-edaflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0