> 
> Hi All,
>        Is there any way in perl i can search for the running
application and its process id using perl. e.g. Let us suppose I know
the name of the application as httpd<binary> Can i search in processes
whether that application is running and what is its process id My
problem is even if some file with name httpd exists It will show you
that also which i want to avoid. Please help
>  
> Thanks,
>  

Generally this is handled best by the application itself generating a
PID file.  For instance if your httpd is Apache it will store a file
(configurable) to a directory on the local filesystem that will store
the initial process' PID.  Then you don't need to read over the process
table.

Having said that, you might want to look at the documentation for
Proc::ProcessTable, or I know drieux had some rants about this, do a
google search for his homepage.  

HTH,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to