The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can i display all httpd processes

Discussion in 'General Discussion' started by kamlesh_chaube, Sep 24, 2009.

  1. kamlesh_chaube

    kamlesh_chaube Registered

    Joined:
    May 25, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Sir,

    I am working in php. I have create cPanel plugin.
    I want all httpd processes of current login user.

    Using unix command ps -eo pcpu,pid,user,tt,cputime,cmd | sort -k 1 -r | head -4

    it give me following output.

    %CPU PID USER TT TIME CMD
    6.3 32688 jholco ? 00:00:00 /usr/local/cpanel/cpanel ./frontend/x3/trafficadvisor/advisor.php
    2.5 32689 jholco ? 00:00:00 /usr/bin/php-cgi /tmp/cpanel_phpengine.1253799704.32688sbJWiNnKYr
    0.1 32495 jholco ? 00:00:00 [cpsrvd-ssl]

    I want to display all processes of current user.

    At the same time advisor1.php, advisor2.php, advisor3.php pages also runing.

    But it is showing me only one advisor.php using this command.

    How can i display all .php file runing.

    Please tell me.

    Thanks,
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
Loading...

Share This Page