APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

width of command in ps


© December 2004 (various authors)

Apparently the suggestion below for increasing ps argument width was wishful thinking, see Width of ps arguments


You aren't going to be able to reach this goal. All parts of the OSR5 kernel are built with the original version of the that you see in your /usr/include hierarchy. You do not have sources to rebuild the whole kernel. Relinking the kernel uses pre-compiled objects.

I happen to know that if you _did_ have kernel sources and made the proposed change, (1) the resulting kernel wouldn't boot; (2) if it did, `ps` would no longer be able to make any sense at all out of it (it wouldn't work at all); (3) all sorts of other parts of the system would also fail. The structure you're trying to modify is referenced by kernel- and user-level code all over the system, much of it precompiled and insensitive to changes in the headers on your filesystem.

Changing that field would require moving it into a different structure so that the structure offsets of `struct user' remained unchanged. Users of that field (such as `ps`) would then have to be modified to look for it in the new location.

>Bela<


Newsgroups: comp.unix.sco.misc
Subject: Re: simple Question about PS and command width
References: <8is43j$cv7$1@perki.connect.com.au> 
From: spcecdt@deeptht.armory.com. (John DuBois)
Message-ID: <e5B45.17913$9W1.338603@news-west.usenetserver.com> 
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
Date: Fri, 23 Jun 2000 03:47:22 GMT

In article <8is43j$cv7$1@perki.connect.com.au>,
Stuart J. Browne <stuart@promed.com.au> wrote:
>Is it possible to get more than 80 characters for the COMMAND name when
>doing a 'ps -f'.

No.  From /usr/include/sys/user.h:

#define PSARGSZ         80      /* Space in u-block for exec arguments */
                                /* Used by ps command */


        John
-- 
John DuBois  spcecdt@armory.com.  KC6QKZ/AE  https://www.armory.com./~spcecdt/



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> width of command in ps ––>Re: simple Question about PS and command width


Inexpensive and informative Apple related e-books:

Take Control of Parallels Desktop 12

Take Control of iCloud, Fifth Edition

Take Control of High Sierra

Take Control of Upgrading to El Capitan

Are Your Bits Flipped?




---January 20, 2005

not true, ps -efww seems to do this in Linux.



Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Science is what we understand well enough to explain to a computer. Art is everything else we do. (Donald Knuth)




Linux posts

Troubleshooting posts


This post tagged:

Kernel

SCO_OSR5



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com