string=$(ps aux | grep $1 | grep -v grep)
list=(${string})
for pid in ${!list[@]}; do
   ((pid == 1)) && printf "${list[$pid]}"
done
