ZeroConf scripts download progress
Can the zeroconf download of the image and/or vm display a progress? It is... remove the --silent and --quiet arguments from curl and wget respectively :) Thank you! Esteban A. Maringolo
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
Esteban A. Maringolo
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flag...
Esteban A. Maringolo
On 11 Jun 2014, at 10:54, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flagâ¦
how? (thinking on "curl get.pharo.org | bashâ usage)
Esteban A. Maringolo
On 11.06.2014, at 15:59, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:54, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flagâ¦
how? (thinking on "curl get.pharo.org | bashâ usage)
Well, the first âcurlâ simply gets the script and feeds it to bash. After that, all the statements from the script work as if executed directly from the shell. Then, in the script, you do something like: if [ <NOT check option> ]; then SILENT= "âsilent" else SILENT=ââ fi
Esteban A. Maringolo
does not work. bash will execute the script (without any option). What I ask is: how do you tell bash that he needs to transfer a flag â-vâ to the downloaded script? Esteban On 11 Jun 2014, at 11:07, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:59, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:54, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flagâ¦
how? (thinking on "curl get.pharo.org | bashâ usage)
Well, the first âcurlâ simply gets the script and feeds it to bash. After that, all the statements from the script work as if executed directly from the shell. Then, in the script, you do something like:
if [ <NOT check option> ]; then SILENT= "âsilent" else SILENT=ââ fi
Esteban A. Maringolo
unless you are suggesting that he can do something like curl get.pharo.org > myScript.sh bash myScript.sh -v that can work On 11 Jun 2014, at 11:27, Esteban Lorenzano <estebanlm@gmail.com> wrote:
does not work. bash will execute the script (without any option). What I ask is: how do you tell bash that he needs to transfer a flag â-vâ to the downloaded script?
Esteban
On 11 Jun 2014, at 11:07, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:59, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:54, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flagâ¦
how? (thinking on "curl get.pharo.org | bashâ usage)
Well, the first âcurlâ simply gets the script and feeds it to bash. After that, all the statements from the script work as if executed directly from the shell. Then, in the script, you do something like:
if [ <NOT check option> ]; then SILENT= "âsilent" else SILENT=ââ fi
Esteban A. Maringolo
On 11.06.2014, at 16:28, Esteban Lorenzano <estebanlm@gmail.com> wrote:
unless you are suggesting that he can do something like
curl get.pharo.org > myScript.sh bash myScript.sh -v
that can work
Ok, you win :) There doesnât seem to be an easy way to do this appart from what youâve done above (yes, there are environment variables etcâ¦). @(other)Esteban How important is this to you? You can always pipe the script through a âsedâ filter and remove the â--silentâ option.
On 11 Jun 2014, at 11:27, Esteban Lorenzano <estebanlm@gmail.com> wrote:
does not work. bash will execute the script (without any option). What I ask is: how do you tell bash that he needs to transfer a flag â-vâ to the downloaded script?
Esteban
On 11 Jun 2014, at 11:07, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:59, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:54, Max Leske <maxleske@gmail.com> wrote:
On 11.06.2014, at 15:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
On 11 Jun 2014, at 10:41, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Can the zeroconf download of the image and/or vm display a progress?
It is... remove the --silent and --quiet arguments from curl and wget respectively :)
Thank you!
mmm⦠I do not think so, since zeroconf scripts are intended to automated scenarios (like jenkins builds, etc.)
We could default to silent and give the user the option to turn off the silence with a -v flagâ¦
how? (thinking on "curl get.pharo.org | bashâ usage)
Well, the first âcurlâ simply gets the script and feeds it to bash. After that, all the statements from the script work as if executed directly from the shell. Then, in the script, you do something like:
if [ <NOT check option> ]; then SILENT= "âsilent" else SILENT=ââ fi
Esteban A. Maringolo
2014-06-11 11:54 GMT-03:00 Max Leske <maxleske@gmail.com>:
@(other)Esteban How important is this to you?
It is not mandatory. I just like to run things verbosely. Feedback is paramount :)
You can always pipe the script through a âsedâ filter and remove the â--silentâ option.
Yep, I can also download the script and keep a modified version. That's why asked if it could be done. Regards!
Hi, In theory, this should work: curl get.pharo.org/stable | xargs bash {} -v but in practice it doesn't ;-) I suspect because of the html hack in bash script. some characters should be protected Cheers, Luc #Luc 2014-06-11 17:09 GMT+02:00 Esteban A. Maringolo <emaringolo@gmail.com>:
2014-06-11 11:54 GMT-03:00 Max Leske <maxleske@gmail.com>:
@(other)Esteban How important is this to you?
It is not mandatory. I just like to run things verbosely. Feedback is paramount :)
You can always pipe the script through a âsedâ filter and remove the â--silentâ option.
Yep, I can also download the script and keep a modified version.
That's why asked if it could be done.
Regards!
participants (4)
-
Esteban A. Maringolo -
Esteban Lorenzano -
Luc Fabresse -
Max Leske