###Scripts version 2008###

This commit is contained in:
castro-fidel
2021-09-04 12:49:27 +02:00
parent 718af5eb05
commit cb7ad7ec30
3 changed files with 5 additions and 2 deletions

View File

@ -576,7 +576,7 @@ pw_kill_autostart () {
else
sleep 10
while true ; do
if [ -z "`ps aux | grep "wgc.exe" | grep -v grep | head -n 1 | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then
if [ -z "`ps aux | grep "$1" | grep -v grep | head -n 1 | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then
echo -e "PID "$1" not found"
sleep 1
else