webbuild-*.cgi: unbuffered stdbuf

This commit is contained in:
Silvan Calarco 2016-08-20 18:31:21 +02:00
parent 47e5bacd9c
commit 81df6e406b
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then
$contentdisposition
Content-Type: application/octet-stream
"
stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
else
echo "\
Content-Type: text/xml
@ -15,5 +15,5 @@ Pragma: no-cache
"
stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
fi

View File

@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then
$contentdisposition
Content-Type: application/octet-stream
"
stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
else
echo "\
Content-Type: text/xml
@ -15,5 +15,5 @@ Pragma: no-cache
"
stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
fi

View File

@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then
$contentdisposition
Content-Type: application/octet-stream
"
stdbuf -oL curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE"
else
echo "\
Content-Type: text/xml
@ -15,5 +15,5 @@ Pragma: no-cache
"
stdbuf -oL curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null
fi