Trigger on interface down

Dear all,
there is a way to run a script when an interface goes down without check periodically interface?
Thanks in advance