Create a gist now

Instantly share code, notes, and snippets.

@narbs /suck.sh
Created Aug 24, 2011

What would you like to do?
iTunes connect auto ingress bash script
#!/bin/bash
itc_username=some_username
itc_password=some_password
itc_account=12345678
yesterday=`date -v-1d +"%Y%m%d"`
if [ "$1" == "" ]; then
echo downloading file for yesterday: $yesterday
java Autoingestion $itc_username $itc_password $itc_account Sales Daily Summary $yesterday
else
echo downloading file for: $1
java Autoingestion $itc_username $itc_password $itc_account Sales Daily Summary $1
fi
gunzip *.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment