width of command in ps
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
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 http://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
Increase ad revenue 50-250% with Ezoic
Inexpensive and informative Apple related e-books:
Take Control of iCloud, Fifth Edition
Take Control of OS X Server
iOS 8: A Take Control Crash Course
Sierra: A Take Control Crash Course
Photos: A Take Control Crash Course
---January 20, 2005
not true, ps -efww seems to do this in Linux.
Printer Friendly Version
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
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