Betriebssysteme > Solaris

"ps -ef" und 'full command'

<< < (3/3)

signal_15:
@vaab
sorry, aber ich bin davon ausgegangen dass ismine hier mittlerweile bekannt ist.-)
es ist solaris 9 auf einer blade100.

@Ten Little Indyans
ja. je laenger ich mir das ansehe, umso mehr glaube ich auch, dass ich etwas kratze was gar nicht juckt. aber warum ist mir das vorher nicht aufgefallen.


--- Code: ---ismine~# /usr/ucb/ps -axwww | grep convert
 22515 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 'albums/pho
 22516 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_03.jpg -
 22519 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 'albums/pho
 22520 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_02.jpg -
 22521 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
 22522 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_01.jpg -
 22526 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
 22527 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_06.jpg -
 22529 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 'albums/pho
 22530 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 'albums/pho
 22531 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_05.jpg -
 22532 ?        R  0:07 /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_04.jpg -
 22637 pts/1    S  0:00 grep convert

--- Ende Code ---

convert laeuft gar nicht zwoelf mal sondern nur sechs mal!

--- Code: ---last pid: 23047;  load averages:  4.51,  3.79,  2.06                                                                                            16:21:05
63 processes:  54 sleeping, 8 running, 1 on cpu
CPU states:     % idle,     % user,     % kernel,     % iowait,     % swap
Memory: 2048M real, 1242M free, 742M swap in use, 4987M swap free

   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
 23025 daemon     1  32    0  134M   83M run      0:06 13.58% convert
 23039 daemon     1  32    0  134M   79M run      0:05 13.30% convert
 23021 daemon     1  32    0   71M   66M run      0:05 13.14% convert
 23036 daemon     1  32    0   47M   43M run      0:05 13.14% convert
 23035 daemon     1  32    0  135M   78M run      0:05 12.96% convert
 23032 daemon     1  32    0  115M   81M run      0:05 12.96% convert
 23047 root       1  59  -20 1920K 1264K cpu      0:00  1.60% top
 22825 daemon     1  59    0   20M   11M sleep    0:02  0.79% httpd
 22934 daemon     1  59    0   19M 9472K sleep    0:00  0.25% httpd
 23016 daemon     1  59    0   19M 9472K sleep    0:00  0.25% httpd
 23018 daemon     1  59    0   19M 9472K sleep    0:00  0.25% httpd
 22935 daemon     1  59    0   19M 9472K sleep    0:00  0.25% httpd
 22832 daemon     1  59    0   19M 9472K sleep    0:00  0.23% httpd
   204 mysql     15  59    0   49M 8312K sleep   14:23  0.09% mysqld
 10141 root       1  49    0 2592K 1880K sleep    0:00  0.05% bash


--- Ende Code ---

und haette ich die ausgabe von 'ps -ef' richtig gelesen, dann waere mir das auch aufgefallen. aber irgendwie habe ich mich so auf die abgeschnittenen befehele konzentriert und ID und PID ausser acht gelassen. und ein '/usr/ucb/ps -axw' gibt mir genau das wonach ich gesucht hatte.

--- Code: ---ismine~# ps -ef | grep -i convert
  daemon 23020 22825  0 16:20:27 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 'albums/pho
  daemon 23032 23031  1 16:20:28 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 albums/photo-uplo
  daemon 23021 23020  2 16:20:27 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 albums/photo-uplo
  daemon 23038 23018  0 16:20:29 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
  daemon 23024 22832  0 16:20:27 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
  daemon 23033 23016  0 16:20:28 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 'albums/pho
  daemon 23031 22934  0 16:20:28 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 'albums/pho
  daemon 23025 23024  2 16:20:27 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-uplo
  daemon 23039 23038  1 16:20:29 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-uplo
  daemon 23035 23033  1 16:20:29 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 albums/photo-uplo
  daemon 23036 23034  1 16:20:29 ?        0:00 /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 albums/photo-uplo
  daemon 23034 22935  0 16:20:28 ?        0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 'albums/pho
    root 23041 10141  0 16:20:30 pts/1    0:00 grep -i convert
ismine~# /usr/ucb/ps -axwww | grep convert
 23020 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 'albums/pho
 23021 ?        R  0:02 /usr/local/bin/convert -quality 95 -antialias -geometry 48x47 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_04.jpg -
 23024 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
 23025 ?        R  0:03 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_01.jpg -
 23031 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 'albums/pho
 23032 ?        R  0:02 /usr/local/bin/convert -quality 95 -antialias -geometry 48x36 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_02.jpg -
 23033 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 'albums/pho
 23034 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 'albums/pho
 23035 ?        R  0:02 /usr/local/bin/convert -quality 95 -antialias -geometry 32x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_05.jpg -
 23036 ?        R  0:02 /usr/local/bin/convert -quality 95 -antialias -geometry 15x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_03.jpg -
 23038 ?        S  0:00 sh -c /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 'albums/pho
 23039 ?        R  0:02 /usr/local/bin/convert -quality 95 -antialias -geometry 31x48 albums/photo-upload/Inges_Gemaelde/Inges_Gemaelde_06.jpg -
 23046 pts/1    S  0:00 grep convert

--- Ende Code ---

nochmals danke an alle.

ct,

tassilo:
moin moin

...da grab ich mal eine leiche aus... habe ein ähnliches problem.
ich möchte mir mit "ps" einfach die prozesse angucken mit deren parametern
unter z.b. linux geht das super mit ps wwux ... geht aber nat. mit solaris nicht. bis zum  ps -aefl bin ich gekommen aber das schneidet mir den output fleissig ab.
ein /usr/ucb/ps gibts bei mir leider nicht... (solaris 10).

hat jemand einen tipp? das kann doch nicht so schwer sein, aber irgendwie steh ich auf der leitung...

grüße

tassilo

Ten Little Indyans:

--- Zitat von: tassilo am 06. September 2011, 19:59:05 ---ein /usr/ucb/ps gibts bei mir leider nicht... (solaris 10).
--- Ende Zitat ---

Dann hast Du das Paket SUNWscpu nicht installiert, da ist der ganze alte BSD-Kram nämlich drin.


--- Code: ---$ uname -rs
SunOS 5.10
$ /usr/sbin/pkgchk -l -p /usr/ucb/ps
NOTE: Couldn't lock the package database.
Pathname: /usr/ucb/ps
Type: linked file
Source of link: ../../usr/lib/isaexec
Referenced by the following packages:
        SUNWscpu       
Current status: installed

--- Ende Code ---

Eine mögliche Alternative wäre pargs.


--- Code: ---$ ps -ef | grep 15445
  ediweb 15445     1   0   Sep 04 ?           3:39 /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java -Djava.util.logging.config.file=/i

$ /usr/ucb/ps wwaux | grep 15445
ediweb   15445  0.1  3.1220640123968 ?        S   Sep 04  3:39 /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java -Djava.util.logging.config.file=/install/apache/apache-tomcat-6.0.32/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/install/apache/apache-tomcat-6.0.32/endorsed -classpath /install/apache/apache-tomcat-6.0.32/bin/bootstrap.jar -Dcatalina.base=/install/apache/apache-tomcat-6.0.32 -Dcatalina.home=/install/apache/apache-tomcat-6.0.32 -Djava.io.tmpdir=/install/apache/apache-tomcat-6.0.32/temp org.apache.catalina.startup.Bootstrap start

$ pargs 15445
15445:  /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java -Djava.util.logging.config.file=/i
argv[0]: /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java
argv[1]: -Djava.util.logging.config.file=/install/apache/apache-tomcat-6.0.32/conf/logging.properties
argv[2]: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
argv[3]: -Djava.endorsed.dirs=/install/apache/apache-tomcat-6.0.32/endorsed
argv[4]: -classpath
argv[5]: /install/apache/apache-tomcat-6.0.32/bin/bootstrap.jar
argv[6]: -Dcatalina.base=/install/apache/apache-tomcat-6.0.32
argv[7]: -Dcatalina.home=/install/apache/apache-tomcat-6.0.32
argv[8]: -Djava.io.tmpdir=/install/apache/apache-tomcat-6.0.32/temp
argv[9]: org.apache.catalina.startup.Bootstrap
argv[10]: start
--- Ende Code ---

stiefkind:

--- Zitat von: tassilo am 06. September 2011, 19:59:05 ---unter z.b. linux geht das super mit ps wwux ... geht aber nat. mit solaris nicht. bis zum  ps -aefl bin ich gekommen aber das schneidet mir den output fleissig ab.
ein /usr/ucb/ps gibts bei mir leider nicht... (solaris 10).
--- Ende Zitat ---

Das ist seltsam. Da würde ich vermuten es fehlt ein Pakete:

--- Code: ---w.stief@ssh:~$ uname -a
SunOS ssh 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V240
w.stief@ssh:~$ cat /etc/release
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007
w.stief@ssh:~$ ls -l /usr/ucb/ps
-r-xr-xr-x  64 root     bin        10044 Jan 23  2005 /usr/ucb/ps
w.stief@ssh:~$ cat /var/sadm/system/admin/CLUSTER
CLUSTER=SUNWCXall

--- Ende Code ---

SUNWCXall heisst in der Installationsroutine "Entire distribution plus OEM" oder so ähnlich. Das Rundumsorglosglücklichpaket. Angesichts heutiger Plattengrößen auch kein Frevel mehr, das zu installieren :)

Helfen Dir alternativ vielleicht die sog. Proc-Tools weiter? Schau Dir mal pargs(1) und die Manpage zu proc(1) an.

wolfgang


Nachtrag: Da hatte wohl noch jemand die selbe Idee wie ich  ;)

tassilo:
moin moin

vielen dank ihr 2...

ja pargs tut den trick, sogar besser als erhofft. :) *freu*

vielen dank und grüße aus berlin

tassilo

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln