more like a home work question.
Refer:
man cut : To know how you can cut mins and PIDs
man if : To see how you will see min > 30
man kill : To see how you kill it.
and
finally
man sleep
once done your script is ready and you r ready for the weekend
Quote:
i wrote echo $SHELL
the answer was : /usr/bin/ksh
my question is if i wan't to run the script should i run it with sh ?
like sh cs-killing-process
note: i have a lot of process running in my system and i killing just speciefied
process ' it will not effected on my system and cause to other process stop
am i right ?
your first line itself tells unix which shell to use for the following script.
If you are so much worried of not killing any important process, please take help of someone more expereince with you as the criteria you say for killing the process can be dangerous.
rishi