created a bash script to clear log and autorun