Redirect output to log file form scripts