#!/bin/bash
#function to exit clean by a CTRL+C 
function die () 
{
   if [ "-bash" != "$0" ]
   then 
      echo $*${*:+ ... exiting}
      exit
   else 
      echo -n "$*${*:+ }(press CTRL+C to stop)"
      # endless loop
      while true;
      do 
         read
      done
   fi
}
