#!/bin/sh
pid='ps -ef|grep lampp|grep -v grep|awk '{ print $2 }''
echo $pid
exit
if[ $pid ]
then
for [ $pid != null ]
do
kill -9 $pid
done
echo “lampp stopped”
else
echo "lampp is not running"
fi