chmod log file to 777 when client excute script