!/bin/bash
pr1=`ps -ef | grep konqueror | grep -v grep | grep -v smb | awk '{ print $2}' | sed '2,3d'`
echo "$pr1"
#
if [ -z $pr1 ] ; then
echo "プロセス無し"
/usr/bin/konqueror
else
echo "プロセス有り"
script=`echo "kill $pr1"`
echo "$script"
eval ${script}
#
echo "----------------------------"
ps -ef | grep konqueror | grep -v grep | grep -v smb
echo "----------------------------"
#
/usr/bin/konqueror
#
fi
Comments