What I'm doing is,
trap 'rm -f /path/of/file/fileName.running; echo "TRAPPED & READY";' 1 2 9 15 >> trap.log I didn't get anything in log & the file which should have been deleted still exists, I'm not sure of which signal could be stopping the script while it's running as I'm just killing the servers which are being used by the script.
NB: My Cron-Scheduled job won't run if that file is present & I don't think I've missed any possible signal. where am I wrong?