2 ## ------------------------------------------------------------------------------------------
4 ## Utils to get and upload files on sftp
6 ## ------------------------------------------------------------------------------------------
11 source ${0%${
script}}ulib.sh
14 usage "$script file_path/filename"\
15 "\nUtility script to get files from sftp, for example, \"$script singularity/irods_v3.3.1.sif\""
20 *) fatal
"Wrong number of arguments."
25 export WGET_MAX_ATTEMPTS=5
33 while [[ $WGET_ATTEMPT != 0 ]];
do
38 echo "WARNING: download failed, retrying"
46 echo "file download and check OK!"
51 echo "WARNING: MD5 file is not avilable or empty"
then JLigier sh continue fi cat
*fatal Wrong number of arguments esac notice which
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
then usage $script file_path filename nUtility script to get files from sftp