Advertisement
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
- archivelist=$1
- startFrom=$2
- maxObjects=50
- echo "Getting cookies"
- curl -X POST -F "UserName=$login" -F "Password=$password" --dump-header somecookies $host/Account/Login
- num=0
- lastObject=0
- while read archiveId;
- do
- if [ -z $startFrom ] || [ $startFrom -eq $archiveId ]
- then
- startFrom=""
- else
- echo "Cobtinbue"
- continue
- fi
- echo "Starting transform for $archiveId"
- lastObject=$archiveId
- curl -X POST -F "id=$archiveId" --cookie somecookies $host/MediaObjects/StartTransform
- num=`expr $num + 1`
- if [ $num -ge $maxObjects ]
- then
- break
- fi
- done < "$archivelist"
- echo "Finished on $lastObject"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement