Re: Long process list



On Jul 2, 2:09 pm, Darren Dunham <ddun...@xxxxxxxxxxxxxxxx> wrote:
gerryt <lepsys...@xxxxxxxxx> wrote:
/usr/ucb/ps should work, but it needs to have privileges on that process
(usually means either the process owner or root).
You got a better ucb/ps than me. As root I only get 80 chars no matter
how many "w"'s I use : >
/usr/ucb/ps axwww|grep '^ 755'|awk 'sub(" 755 \?\? S 0:00
","")1'| wc -c
80
What OS? It works fine on a Solaris express box I happened to be on,
but I can try it on some others.

SPARC u3 patched to the nines and x86 Express b65
At first I wondered if the box was suspect but on a totally different
arch I get the same...
I am not comfortable with the diffs between our systems
and Id like to sort this out.

Been getting some odd results from patchadd -p as well recently.

characters and then s# perl -le 'sleep 50 ; print "@ARGV"' A really long set of arguments to a perl process that exceeds 80 ome &
[1] 1931
# /usr/ucb/ps xww | grep perl
1931 pts/1 S 0:00 perl -le sleep 50 ; print "@ARGV" A really long set of arguments to a perl process that exceeds 80 characters and then some
1933 pts/1 S 0:00 grep perl

pargs 1076
1076: /usr/lib/sendmail -bd -q15m
argv[0]: sendmail: accepting
connections
argv[1]: <NULL>
argv[2]: nnections
Not terribly useful
That's why I said the information may not completely exist.

Indeed : >

could be a bug in my pargs as -l never works
either : <
What do you get instead?

# pargs -l 1076
pargs: target has corrupted argument list
Both systems as root or otherwise.
a truss of the process seems ok at first glance.

I'd be more nervous if the x86 box behaved differently but it doesnt.
But Im still uncomfortable.

.



Relevant Pages

  • Re: Long process list
    ... (usually means either the process owner or root). ... It works fine on a Solaris express box I happened to be on, ... 1933 pts/1 S 0:00 grep perl ...
    (comp.unix.solaris)
  • Re: Long process list
    ... pargs: ... Both systems as root or otherwise. ... pargs is strange, ps is ... All that is common by then is "bash" for a shell. ...
    (comp.unix.solaris)
  • Re: pargs command
    ... one could interrogate using the pargs command other than root? ... Well, if you have root access, you can always do it the evil way: ...
    (comp.unix.solaris)