Henry,

This is very OS-specific. Solaris 7 exposes some
neat APIs that allow access to this information from
C. So, theoretically, you could call this with a JNI
wrapper. Alternately (again with Solaris 7) you could
test what you can get access to directly from Java's
File class looking in /dev/proc
You can get further information from the article
written by Adrian Cockroft at http://www.sunworld.com
I wonder when Sun will expose a Java api for all their
Solaris C apis?



Peter Booth

-----Original Message-----
From: Henry Lai [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 04, 2000 5:18 AM
To: [EMAIL PROTECTED]
Subject: getting pid of a process in a servlet


Is there anyway for a servlet to get the pid of a process running on a
system without using "ps and grep"????

Any help would be very useful.  Thanks.


Henry

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information.  No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.  Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state
them to be the views of any such entity.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to