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.

Need some SHELL commands

Discussion in 'General Discussion' started by laks, Jan 23, 2012.

  1. laks

    laks Member

    Joined:
    Dec 14, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    How can i find found following process. Process is Enabled or disabled using shell script.
    EX : /etc/init.d/sshd status
    openssh-daemon (pid 3465) is running...


    SSH,
    FTP,
    SMTP,
    POP3, and
    QMAIL, -Number mail's in queue.
    -----------------------------------------------------
    i have already created shell script. but its showing correct status or not. i can not find out.
    SSH, #netstat -ta | grep ESTABLISHED | grep ssh
    FTP, # netstat -a | grep ESTABLISHED | grep ftp
    SMTP, # netstat -anp | grep ":25 " | grep LISTEN
    POP3, # netstat -anp | grep ":110 " | grep LISTEN

    or any other commands available.

    i m waiting for reply with hopeful

    Thank you,
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    First of all, qmail is not used on cPanel machines. Next, what is the exact script being used?
     
  3. devinwhite71

    devinwhite71 Registered

    Joined:
    Mar 19, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
Loading...

Share This Page