a guest Oct 3rd, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Arguments are currently the list of ids and the id to start from
- echo "Getting cookies"
- curl -X POST -F "UserName=$login" -F "Password=$password" --dump-header somecookies $host/Account/Login
- while read archiveId;
- if [ -z $startFrom ] || [ $startFrom -eq $archiveId ]
- echo "Cobtinbue"
- echo "Starting transform for $archiveId"
- curl -X POST -F "id=$archiveId" --cookie somecookies $host/MediaObjects/StartTransform
- num=`expr $num + 1`
- if [ $num -ge $maxObjects ]
- done < "$archivelist"
- echo "Finished on $lastObject"
RAW Paste Data