[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process Id by Name.
On Mon, 23 Oct 2000 didi@math.tau.ac.il wrote:
> In addition to that, you should check the sources of top, which is ported
> to many unices, and you'll see how to parse /dev/kmem and such.
> Of course, don't use top from the procps utils - use the original
> from <ftp://ftp.groupsys.com/pub/top>.
> I once had to write something similar, and top's sources were very helpful.
an important note regarding this: using the /proc file system interface,
as well as kmem and friends is not portable even between different
versions of the same OS. for example, the /proc file system interface was
completely re-written between solaris 2.5 and solaris 2.6, with the
backward compatibility mode mulfunctioning.
the same would most likely be the case with using kmem on HP-UX 10.20 and
11.00 (and older versions, if you need to support those) and probably
different linux versions as well. take that into account before choosing
the method of operation.
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il