libevent API provides a mechanism to execute a callback function in bash ,bash is the language of ubuntu. read more