laks

Member
Dec 14, 2011
12
0
51
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,
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
41
348
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?