'ps' behavoir in Linux - Was - Re: array limits

Brian K. White brian at aljex.com
Thu Apr 15 19:57:57 PDT 2004


Jerry Rains wrote:
> On Thursday 15 April 2004 20:21, Kenneth Brody wrote:
>> Jerry Rains wrote:
>> [...]
>>
>>> This brings up a point I have been meaning to post for a while.
>>> Brians ps command works fine on SCO5.0.5 but on SuSE8.2
>>>
>>> ps -eo args | grep dclerk   returns
>>>
>>> [dclerk]
>>>
>>> This gives me no idea which filePro file or what process table is
>>> being run. I looked through 'man ps', but I found no other argument
>>> that did any better.
>>
>> I don't have SuSE here, but I've seen these flag combinations on
>> different *nix systems over the years:
>>
>>     ps -axf
>>     ps -edalf
>
> No luck.  The portion of the line dedicated to the dclerk command is
> still [dclerk] for both of these.  In the man pages it talks about the
> PS_PERSONALITY environment variable.  It has lots of modes, one of
> them being 'sco' but none of them show the /appl/fp/ much less the
> filePro filename, and the rest of the real arguments.
>
>
> jmrains at Coastal:~> ps -eo args | grep dclerk
> [dclerk]
> grep dclerk
> jmrains at Coastal:~> ps -edalf | grep dclerk
> 0 S filepro  27145 27092  0  75   0 -   351 schedu 20:46 pts/2
> 00:00:00 [dclerk]
> 0 S jmrains  27171 27104  0  80   0 -   882 pipe_w 20:53 pts/3
> 00:00:00 grep dclerk
> jmrains at Coastal:~> ps -axf | grep dclerk
> Bad syntax, perhaps a bogus '-'?
> 27145 pts/2    S      0:00  |   |   \_ [dclerk]
> jmrains at Coastal:~>


on linux and freebsd to get full argment list I use ps auxwww
you can add more w's to get more stuff to the right. after the command and
it's arguments it will list some of the environment, up to all of it if you
give enough w's

try ps auxwwwwwwwwwwwwwwww |less -S

and arrow to the right in less
possibility for interesting tricks there, even if you are not root and can
only see your own other processes. poor mans ipc?  :)

Last time I tried on freebsd (few months ago, freebsd 5.2-current), ps also
accepted "ps -elf" which gave me output exactly like sco's if I gave the
same command on sco.
Note that the missing "-" in "ps auxwww" but present in "ps -elf" is not a
typo.

Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani



More information about the Filepro-list mailing list