Skip to content

Instantly share code, notes, and snippets.

@alcir
Created April 15, 2014 08:29
Show Gist options
  • Save alcir/10713767 to your computer and use it in GitHub Desktop.
Save alcir/10713767 to your computer and use it in GitHub Desktop.
#!/bin/bash
TWIDDLEPATH=/export/dcm4chee/bin/twiddle.sh
TWUSER=admin
TWPASS=password
TWHOST=127.0.0.1
INPUTFILE=/tmp/queryresult.txt
while read LINE
do
$TWIDDLEPATH -s $TWHOST -u $TWUSER -p $TWPASS invoke "dcm4chee.archive:service=FileCopy" copyFilesOfStudy $LINE
done < $INPUTFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment