shell script for automated run