automate shell script