exec command error logging
maxBuffer option added due to stdout maxbuffer exceeded error