get whole command arguments in ps -ef? | Unix Linux Forums | HP-UX

  Go Back    


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

get whole command arguments in ps -ef?

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-31-2003
usfrog usfrog is offline
Registered User
 
Join Date: Dec 2001
Last Activity: 9 July 2009, 9:28 PM EDT
Location: San Jose CA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Question get whole command arguments in ps -ef?

Hello All,

I want to build some monitoring of processes in HP-UX 11.x.

Is there any way to get the whole set of commands and arguments instead of the first 60 characters? I read that there's a limitation of the ps -ef command that we can't overcome. In this case is there any other command that I can use?

My need is so basic I can't believe there's no way to get that information

Thank you!
Sponsored Links
    #2  
Old 03-31-2003
nhatch nhatch is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 15 March 2011, 2:13 PM EDT
Location: London, England
Posts: 92
Thanks: 1
Thanked 0 Times in 0 Posts
Hi,

I'm pretty sure that if you use ps -efx should give you all the information you need.

x means extra (as in detail)

Cheers,
Sponsored Links
    #3  
Old 03-31-2003
usfrog usfrog is offline
Registered User
 
Join Date: Dec 2001
Last Activity: 9 July 2009, 9:28 PM EDT
Location: San Jose CA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Data

Nope - on HP-UX "x" is an illegal option Thank you for your post.....
    #4  
Old 03-31-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 30 September 2014, 8:56 PM EDT
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 64
Thanked 436 Times in 261 Posts
You read correctly. The HP-UX kernel does not save the entire argument list for later inspection. No tool can be built to get back more than the kernel saved.
Sponsored Links
    #5  
Old 04-01-2003
nhatch nhatch is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 15 March 2011, 2:13 PM EDT
Location: London, England
Posts: 92
Thanks: 1
Thanked 0 Times in 0 Posts
Most strange, I am most definatly working on HP_UX 11 and doing ps -efx does give an extended command info. Extract from man page
ps(1) ps(1)

NAME
ps - report process status

SYNOPSIS
ps [-adeflPx] [-g grplist] [-p proclist] [-R prmgrplist] [-t termlist]
[-u uidlist]

blah blah blah......

-x Shows the command line in extended format.
Sponsored Links
    #6  
Old 04-01-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 30 September 2014, 8:56 PM EDT
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 64
Thanked 436 Times in 261 Posts
Quote:
Originally posted by nhatch
Most strange
Well, I agree with that much of your post

This is what the HP man page for ps actually has:

Code:
 NAME
      ps - report process status

 SYNOPSIS
      ps [-adeflP] [-g grplist] [-p proclist] [-R prmgrplist] [-t termlist]
      [-u uidlist]

    XPG4 Synopsis
      ps [-aAcdefHjlP] [-C cmdlist] [-g grplist] [-G gidlist] [-n namelist]
      [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t termlist]
      [-u uidlist] [-U uidlist]


and later...

           args           The command line given when the process was
                          created.  This column should be the last one
                          specified, if it is desired.  Only a subset of the
                          command line is saved by the kernel; as much of
                          the command line will be displayed as is
                          available.  The output in this column may contain
                          spaces.  The default heading for this column is
                          COMMAND if -o is specified and CMD otherwise.

nhatch, run the "uname -a" command and post the results.
Sponsored Links
    #7  
Old 04-02-2003
nhatch nhatch is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 15 March 2011, 2:13 PM EDT
Location: London, England
Posts: 92
Thanks: 1
Thanked 0 Times in 0 Posts
Perderabo

uname -a

HP-UX matisse B.11.11 U 9000/800 686369372 unlimited-user license
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
command line arguments vins_89 Shell Programming and Scripting 2 03-13-2011 03:14 AM
command line arguments ikeQ UNIX for Dummies Questions & Answers 1 05-20-2010 03:32 AM
command line arguments skooly5 Shell Programming and Scripting 1 04-07-2008 03:49 AM
Command Line Arguments roba909 UNIX for Dummies Questions & Answers 7 01-19-2006 12:46 PM
GREP Command with several arguments tomapam Shell Programming and Scripting 3 01-03-2003 11:34 AM



All times are GMT -4. The time now is 11:56 PM.