[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ausgabe von ps umleiten



Am Montag, 20. Oktober 2003 22:58 schrieb Mika Fischer:
> Hallo Frank!
>
> * Frank Dietrich <bits_n_bytes@gmx.de> [2003-10-20 22:30]:
> > Laut 'man ps' kann ich 'u' nicht ohne angeben.
>
> Bei mir steht:
> a	select all processes on a terminal, including those of other users
> x	select processes without controlling ttys
> u	display user-oriented format

Man sollte die SYSV-konformen Optionen des ps nutzen, das ist 
mittlerweile auch in Linux Standard. Dann ist auch das Verhalten wieder 
*vernünftig* ;)

Aus man ps: 
      Set the I_WANT_A_BROKEN_PS environment variable  to  force
       BSD  syntax even when options are preceeded by a dash. The
       PS_PERSONALITY environment variable (described below) pro­
       vides more detailed control of ps behavior.

Das Verhalten für die BSD-Optionen (mit / ohne Bindestrich) ist also 
abhängig von o. g. Variablen.

Für eine vollständige Prozessliste ist dann
ps -ef
zuständig, dann klappt auch eine Umleitung ohne Stress.

Jan



Reply to: