adding c program for sending triggers