Skip to content

Commit

Permalink
added wrapper script
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceminotto committed May 24, 2017
1 parent 0918848 commit e9f18ab
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions wrapper/wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

function debug {
echo "creating debugging directory"
mkdir .debug
for word in ${rmthis}
do
if [[ "${word}" == *.sh ]] || [[ "${word}" == lib ]]
then
mv "${word}" .debug;
fi
done
}

rmthis=`ls`
echo ${rmthis}

ARGSU="${columns}"
INPUTSU="${tab_file}"
echo "arguments are "${ARGSU}
echo "inputs are "${INPUTSU}

COLU=\$"${columns}"
COLU=`echo ${COLU} | sed -e 's/,/,\\$/g'`
CMDLINEARG="awk '{ print "$COLU" }' IFS='\\t' OFS='\\t' "${INPUTSU}" >> filtered_"${INPUTSU}" "

echo ${CMDLINEARG};
chmod +x launch.sh

echo universe = docker >> lib/condorSubmitEdit.htc
echo docker_image = ubuntu:16.04 >> lib/condorSubmitEdit.htc ######
echo executable = ./launch.sh >> lib/condorSubmitEdit.htc #####
echo arguments = ${CMDLINEARG} >> lib/condorSubmitEdit.htc
echo transfer_input_files = ${INPUTSU}, launch.sh >> lib/condorSubmitEdit.htc
#echo transfer_output_files = output >> lib/condorSubmitEdit.htc
cat /mnt/data/apps/cut_columns/lib/condorSubmit.htc >> lib/condorSubmitEdit.htc

less lib/condorSubmitEdit.htc

jobid=`condor_submit -batch-name ${PWD##*/} lib/condorSubmitEdit.htc`
jobid=`echo $jobid | sed -e 's/Sub.*uster //'`
jobid=`echo $jobid | sed -e 's/\.//'`

#echo $jobid

#echo going to monitor job $jobid
condor_tail -f $jobid

debug

exit 0

0 comments on commit e9f18ab

Please sign in to comment.