11-01-2012
4,673,
588
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks Given: 8
Thanked 588 Times in 561 Posts
Well, usually after an abort the exit is not 0, which you can catch and immediately store right after, "ret_code=$?", then 'if [ "$ret_code" != 0 ];then do_your_thing done'.