2 ## ------------------------------------------------------------------------------------------
4 ## Utils to get and upload files on sftp
6 ## ------------------------------------------------------------------------------------------
11 source ${0%${
script}}ulib.sh
14 usage "$script file_path/filename sftp_path"\
15 "\nUtility script to upload files on sftp, for example, \"$script data.root user/tmp\""
20 *) fatal
"Wrong number of arguments."
31 fatal
"File ${FILENAME:t} is already on sftp server, quitting."
37 echo "Enter KM3NeT SFTP password"
40 echo "Checking the uploaded file"
47 fatal
"File ${FILENAME} not found locally"
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
*fatal Wrong number of arguments esac notice which
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