Re:Announcing Google Cloud Bigtable
by lukeschlather on Wednesday May 06, 2015 @11:26AM
(#9499364)
If the HTTP connection is interrupted during download (highly likely if you're doing this routinely) you'll end up with something in a broken state. Locally running a remote stream as it arrives as code is just a bad idea, unless you're talking about something like a webpage where a partial is potentially preferable to nothing at all.
[ Parent
| on HN ]
Code which is meant to be piped into bash is generally written as:
#!env bash
f () {
...code
...code
...code
}
f
Hence a partial stream will do nothing (syntax error, missing brace to be precise).
Re:Announcing Google Cloud Bigtable
by plorkyeran on Wednesday May 06, 2015 @01:15PM
(#9500196)
This is a completely trivial problem to solve (wrap the logic in a function), which the script in question does solve.