PS-Befehl in Solaris

6882
user38993

Die Ausgabe von PS-Befehlen wird in Solaris abgeschnitten. Ich habe den folgenden Befehl ausprobiert, nachdem ich googeln wollte. Es funktioniert nicht Nicht sicher, was getan werden muss

/usr/ucb/ps awwx 
4
Was meinst du mit "abgeschnitten"? Haben Sie das [Handbuch] (http://docs.sun.com/app/docs/doc/816-0210/6m6nb7mie?a=view) gelesen? Matthew Flaschen vor 13 Jahren 0
"Es funktioniert nicht" funktioniert nicht. Dennis Williamson vor 13 Jahren 0

1 Antwort auf die Frage

11
alanc

Solaris 10 and later no longer make /usr/ucb/ps setuid-root by default, and you need root privileges to poke into the address space of other users processes to get the full set of arguments.

Run it as root or the process owner to see more than 80 characters of the command line.

On Solaris 11, if you use options without a dash (like /usr/bin/ps auxwww) they will be treated as UCB style options, and the output will show extra long lines, even when you are NOT running as root. This is not well publicized.

For further reference:

Update: As of Solaris 11.3 SRU 5.6 (released Feb. 2016), the 80 character limit is removed completely from ps - see Solaris 11.3 SRU 5.6: updates in ps(1) and /proc/<pid>/.