title: How to execute AWS emr and redshift scripts?
body: <p>I have files in <code>S3 folder</code> where I have to use <code>PiG scripts</code> from <code>EMR</code> to do transformation and then load back to s3. </p>
  
  <p>After that I have created tables in <code>redshift</code> which are loaded from S3.</p>
  
  <p>Currently, I have used SQL work bench to load files from s3 and also I have executed pig script from AWS GUI window.</p>
  
  <p>I would like to know how can I call the pig scripts from unix shell?
  How can I execute the redshift scripts apart from sqlworkbench?
  How can I run them sequentially?</p>
  
  <p>Do I need to have EC2 Linux setup to connect to EMR? 
  Note: I have an Windows EC2 instance also.</p>