gobiraj
Member level 2
Hi All,
I am trying to create the script to kill a process for a periodic time. So I did write the following
step 1: pidof {process name}
step 2: I need to assign the process id to variable ( $ID ='pidof {process name}'}
step 3: kill the process using ID parameter which was assigned on step 2 ( kill $ID)
but it doesn't work .But I can't use process Id number with kill since id varies every time
So can some one please give me some suggestion
I am trying to create the script to kill a process for a periodic time. So I did write the following
step 1: pidof {process name}
step 2: I need to assign the process id to variable ( $ID ='pidof {process name}'}
step 3: kill the process using ID parameter which was assigned on step 2 ( kill $ID)
but it doesn't work .But I can't use process Id number with kill since id varies every time
So can some one please give me some suggestion