Running the command specified replacing %file with the event triggered