public
Created

Script to populate a Joyent Manta account with Getty Open Content originals, capped at 20.

  • Download Gist
Manta_Getty_Originals.sh
Shell
1 2 3 4 5 6 7 8 9
#!/bin/bash
SITE="https://us-east.manta.joyent.com/mantademo/public/images/getty-open/"
DEST="/$MANTA_USER/public/"
# For more files change "-20" below to a larger number.
# For the complete download, remove "head -20 |" below
 
mmkdir -p ${DEST}/originals
curl -ksL ${SITE}/filelist.txt | head -20 | mput ${DEST}/filelist.txt
echo ${DEST}/filelist.txt | mjob create -m "xargs -I {} sh -c 'curl -ksL ${SITE}/originals/{} | mput ${DEST}/originals/{}'"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.