Re: Herausfinden ob Prozess zu PID existiert

Thomas Moritz <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization unorganisiert
Message-ID <[email protected]>
Am Dienstag, 5. Juli 2005 18:46 schrieb Bernhard Walle:

Hallo Bernhard,

> folgendes Problem: Ich habe eine PID und möchte herausfinden, ob
> zu der PID ein Prozess existiert. Das ganze soll möglichst
> portabel sein. Unter Linux könnte ich herausfinden, ob
> /proc/<pid> existiert. Aber wie schaut's unter anderen Unixen aus
> (BSD, Solaris)? Geht das nicht auch portabler mit einem
> ensprechenden Systemaufruf?

was meinst Du zu:

ps ax | grep <pid>

Kann sein, dass ich voellig daneben liege, aber das ist mir spontan 
dazu eingefallen.

MfG Th. Moritz
-- 
Dank Alzheimer lerne ich dauernd neue Leute kennen!

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.