Dear Friends,
I again have a question(looks like i have a lot of questions:) )
I need  a shell script run as a cron to do the following task,
1)Do 'ps -ef' or with other arguments of 'ps '  and see whether a
particular  process is executing. Pl. tell me what are the best parameters
of 'ps' to search for a particular process
2) If yes do nothing.
3)If no runs that same process.
 4)Logs all messages to a file
5)Logs all error messages to another file.
I am a novice at shell script.
Pl. help me give some inputs , regarding the best parameters /arguments of
'ps' and whas the method of logging error and normal messages.
Thakns,
--
Regards,
Abhishek Jain
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to