Monday, May 24, 2010

Checking Running Services using Perl?

Hi, i im interested to create a perl script which would check a number of unix boxes to see if particular processes are running then report on the status of the processes. Any idea how i can do this? Or any suggestions of any other languages to use ?





THanks!!!

Checking Running Services using Perl?
I think you want the Proc::ProcessTable module from CPAN.
Reply:this is a pretty trivial program to write in perl on a unix box. I am sure there are a number examples of such code available for free, and they may or may not depend on freely available code/modules from CPAN.





google is your best friend here.
Reply:a lot of linux boxes come with(or can use) htop, a neat "task manager" for Linux. as far as unix goes, check the gcc libraries or get the htop source and compile it for the unix flavor you are using(openBSD, netBSD, etc). Red Hat and other proprietary linux's(and solaris)use different methods of doing this. very distr0-specific.





sudo apt-get install htop


or untar htop source(tar -xzpc ./source.tar.gz ./source, make install, make)


No comments:

Post a Comment