script to read mails and execute commands by instructions. This should be run as cron job.