Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
datadump
Commits
fe998980
Commit
fe998980
authored
Jul 16, 2019
by
Jonathan Schaeffer
Browse files
Correction d'un bug
empêchant au programme de détecter une erreur iput
parent
89970fce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resifdatadump
View file @
fe998980
...
...
@@ -61,9 +61,10 @@ irods_push(){
COMMAND
=
"iput --retries 5 -T -K -f -X
$RESIFDD_WORKDIR
/
${
KEY
}
.restart
$RESIFDD_WORKDIR
/
${
KEY
}
.tar
$KEY
/staging.tar"
start
=
$(
date
+%s
)
eval
$COMMAND
IPUTRC
=
$?
duration
=
$((
$(
date
+%s
)
-
$start
))
throughput
=
$((
$SIZEMB
/
$duration
))
if
[[
$
?
-ne
0
]]
;
then
if
[[
$
IPUTRC
-ne
0
]]
;
then
echo
"[
$KEY
] Error 011 sending file to irods. The command was:
$COMMAND
"
format_report
$KEY
$SIZEMB
$(
date
+%Y-%m-%dT%H%M%S
--date
=
@
$start
)
$duration
$throughput
'Error 011. Transfer Cancelled'
>>
$LOCAL_REPORT
# Roll back
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment