logamazon shell script