Automation Using Bash and Expect