#copy content of directory to orthanc #works for orthanc 1.12.0, not for 1.6.1 if [ $# -lt 1 ] ; then echo $#; echo Usage $0 DIR networkConfig; exit 0; fi; CFG=$2; USER=$(jq -r ".orthanc.user" $CFG); PASSWORD=$(jq -r ".orthanc.password" $CFG); SERVER=$(jq -r ".orthanc.server" $CFG); CURL="curl -u $USER:$PASSWORD" arr=($(echo $1/*.zip)); Nall=${#arr[@]}; N=$Nall echo Loading $N/$Nall; i=0 for ((j=0;j