Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function GetPIDS
{
USER=`whoami`
## On AIX, process id shows up in column 2...
if [ $OSTYPE = "AIX" ]
then
COLUMN=2
else
COLUMN=1
fi
PIDS=$(ps -u $USER | grep $1 | awk '{print $'$COLUMN'}')
}
function KillProcess
{
for signal in 2 9
do
GetPIDS $1
if [ -z "$PIDS" ] ; then
return
else
echo " sending signal $signal to all $1 processes..." >> $LOGFILE
kill -$signal $PIDS
sleep 1
fi
done
}
[code]