Cube Event Emitter in bash