Commit f9cf8e5e authored by Rohit Gupta's avatar Rohit Gupta

fix for script that kills old programs

parent 300fc152
...@@ -13,7 +13,7 @@ pid="$$" ...@@ -13,7 +13,7 @@ pid="$$"
echo "pid = $pid" echo "pid = $pid"
echo "Killing programs now..." echo "Killing programs now..."
var=`ps -aux |grep -E -i $1 |awk '{print $2}'| tr '\n' ' ' | sed "s/$pid/ /"` var=`ps -aux |grep -E -i '$1' |awk '{print $2}'| tr '\n' ' ' | sed "s/$pid/ /"`
echo $var echo $var
if [ -n "$var" ] ; then sudo kill -9 $var ; fi if [ -n "$var" ] ; then sudo kill -9 $var ; fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment