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,
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,