Commit 0ad2386c authored by Christian Meesters's avatar Christian Meesters

added a stage-in script to ensure minimal amount of communication (e.g. ssh) for stage-in

parent 74a47a5a
function stage_in_writer() {
cat <<EOF > $stagefile
#!/bin/bash
target=/localscratch/$SLURM_JOB_ID/ramdisk
cd \$target
for fname in \$(find ${DATABASEPATH} -type f ); do
suffix=\${fname#*.}
outfile=db.\${suffix}
dd bs=4048 if=\$fname of=\$outfile &
done
cd -
EOF
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment