in reply to Memory Monitoring

I think you can get all the information from the top utility, i.e.:
$ top -n1 -c -b

You can parse its output from perl and forget about all the portability issues associated to /proc

Replies are listed 'Best First'.
Re^2: Memory Monitoring
by jhourcle (Prior) on Apr 25, 2005 at 13:44 UTC

    I think there might be some portability issues, as those flags don't work on the versions of top that I have. (Solaris and MacOS):

      oops, it seems that there are several top implementations, with incompatible command line options...