in reply to $@ alternative

You could use your own global variable which is set to a non-zero value when the alarm is triggered.

rdfield