#!/bin/bash

pidpath=/tmp/a.pid

if [ -f "$pidpath" ];then

    kill $(cat $pidpath)>/dev/null 2>&1

rm -rf $pidpath

fi


echo $$>$pidpath

sleep 100