Skip to content
Snippets Groups Projects
Commit f764aea6 authored by Rohit Gupta's avatar Rohit Gupta
Browse files

logging for killing old programs

parent fe1b334d
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@
#$1 programs to be killed and checked
echo "removing old programs..."
echo "args = $1"
echo "programs to be killed"
ps -aux |grep -E -i $1
ps -aux |grep -E -i $1| awk '{print $2}' | sudo xargs kill -9
var=`ps -aux |grep -E -i $1`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment