Skip to content

Instantly share code, notes, and snippets.

@rclements
Created December 5, 2018 18:59
Show Gist options
  • Save rclements/4bc455a1ba7fed880942bd31b0a73b4b to your computer and use it in GitHub Desktop.
Save rclements/4bc455a1ba7fed880942bd31b0a73b4b to your computer and use it in GitHub Desktop.
jailcore.sh
cd Z:/Interfaces/JailCore
echo "Beginning JailCore Image Upload"
for file in *.Xml; do
curl -X PUT http://app.jailcore.com/upload_sams_data -F "file=@/"Z:/Interfaces/JailCore/$file";filename=$file;type=image/png" -F "jail_id=35"
done
find . -name "*.Jpg" -mmin -2880|while read fname; do
curl -X PUT http://app.jailcore.com/upload_sams_image -F "image=@/"Z:/Interfaces/JailCore/$fname";filename=$fname;type=image/png" -F "jail_id=35"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment