Linux kill process
How linux automatically kill a process base on the process name:
Actually the easiest way to do that would be to pass kill arguments like below:
ps -ef | grep your_process_name | grep -v grep | awk '{print $2}' | xargs kill
http://stackoverflow.com/questions/13910087/shell-script-to-capture-process-id-and-kill-it-if-exist
http://askubuntu.com/questions/239923/shell-script-to-9-kill-based-on-name
How to create a bash under liux:
http://linuxcommand.org/wss0010.php
kill and start
linux schedule:
http://www.howtogeek.com/101288/how-to-schedule-tasks-on-linux-an-introduction-to-crontab-files/
https://vexxhost.com/resources/tutorials/how-to-use-cron-jobs-for-automation-on-ubuntu-14-04/
猜你喜欢
转载自liue.iteye.com/blog/2335136
今日推荐
周排行