|
发表于 2006-8-16 11:26:15
|
显示全部楼层
It could be a very easy script. but not only you need to know shell programming, but also cron - the job/task scheduler, which is where you will put your script in. Do a man page on cron and you will see some details how to use it. For the script, you need to know:
1. ps command.
2. basic concepts of globbing or regex (regular expression) which will serve for searching patterns. (cmd related are such as grep, egrep, etc.)
3. You also might want to take a look variable substitution and commmand substitution.
4. For those processes you want to watch, you'd look at how to start them.
5. If you have some more time, then take a look the logging and debugging skills. |
|