in reply to Working With The Process Table (AIX)

Not a Perl question. Did you bother to read the part in Proc::ProcessTable where they explain you need to read the README.aix where the author explains that you can't get that info without reading /proc/kmem and he doesn't want to do that so you can run it without root privileges.

Sure, okay, you want to do this in Perl and there are probably a few AIX guys around here so it's sort of okay. But then you just ignore je44ery when he says "There is no kernel process structure to store the full path to arguments that happen to be file name values." But hey, why would that be an issue when all you want is the full path to the arguments?

  • Comment on Re: Working With The Process Table (AIX)

Replies are listed 'Best First'.
Re^2: Working With The Process Table (AIX)
by Limbic~Region (Chancellor) on Aug 06, 2011 at 22:58 UTC
    Anonymous Monk,
    I read the README.aix about a dozen times and it doesn't mention anywhere that this information is not available - only that he used undocumented function calls and that he avoided reading the kernel memory.

    Cheers - L~R

      Look, if you choose to ignore the fact that AIX doesn't provide this information, feel free to carry on but you're pissing in the ocean.

      Of course Jens has some nice insight but it's not because AIX is helping you out. As I said, this is not a Perl question ... because it's about low level AIX kernel structures ... maybe IBM would know?

        Anonymous Monk,
        I am not ignoring the "fact", I am stating that the source you indicate provides this "fact" actually says no such thing. You seem to be inferring something not actually said in the README.aix. You are correct in that it is not directly a perl question though I am writing a perl library and would like access to this information. I have just received an email from the IBM author of the nmon() utility and have decided on a combination of
        • getprocs64()
        • /proc/<pid>/psinfo and /proc/<pid>/cwd
        • ps <options> <pid>
        Depending on what information the user actually wants.

        Cheers - L~R