loging when removing old programs
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
#$1 programs to be killed and checked
|
||||
echo "removing old programs..."
|
||||
echo "args = $1"
|
||||
ps -aux |grep -E -i $1| awk '{print $2}' | sudo xargs kill -9
|
||||
|
||||
var=`ps -aux |grep -E -i $1`
|
||||
|
||||
Reference in New Issue
Block a user