LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > vinaykori
User Name
Password

Notices


Rate this Entry

Shell script for reading a particular process contineously from process table

Posted 05-29-2009 at 01:44 AM by vinaykori

Hi All,
Can any one help me out in writing a script for the below requirement.

Shell script for reading a particular process contineously from process table and redirect to a file with process details.


Requirement:
There will be a number of processes is running with the same process name having diffrenet Process ID. You wan't whenever a new process get invokes with the same process name then those process details needs to be redirect to File where you can easly see the no of processes ran.

For this require a deamon shell which will be always running in the back ground and checks for a particular process like "http" , whenever it invokes need to append the file with process details.

Example:
There are 4 http process are running whenever the new http process invokes "fifth" one that also need to update in the file with process details.
Posted in Uncategorized
Views 1558 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration