Check whether ftpd process is running or not?

Hi,

I want to check whether the ftpd process is running or not.

Is there any solaris command that can help me in this?

Or is there any other way in which I can check this?

Is it possible to check programmatically (preferrably in a C++ code)?

Eagerly awaiting a reply.

Thanx.

the ftpd is only running while a ftp transfer is active. the in.ftpd is started and controlled via inet.d.
i only know the command via shell to check it:

ps -ef | grep ftpd

I have tried using this command but this doesn't work.
It doesn't show any running process.

So it does mean that ftpd daemon is not running on your system.

indeed... :wink:

Well actually, the command shows ftpd process as running ONLY when an ftp transfer is actually taking place....

what if I want to check if the ftpd process is running or not even when NO ftp transfer is going on...???

Is it possible tht the ftpd process gets killed after its been started by inet...???

please read my first post in this thread!

the in.ftpd is ONLY running during active ftp session!

Thanx....

When an ftp transfer is complete, does inet.d kill the in.ftpd process and restart it for every subsequent transfer...???

OR does the ftpd process go into the sleep mode....???

your first guess is the right one... :wink: