added appending command to a log file for cpu count