You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
339 B

#!/bin/bash
source coinlist
count=0
while [ "x${coinlist[count]}" != "x" ]
do
all=${coinlist[count]}
name=${all%% *}
if [ "$name" != "" ]
then
echo $name
processinfo=$(ps aux | grep komodod | grep $name)
pid=$(echo $processinfo | awk '{print $2}')
#gdb -p $pid &
echo $pid
fi
count=$(( $count +1 ))
done