vmware-archive / webcommander

Powerful, flexible, intuitive and most importantly simple. That is what a real automation solution should be. No matter how complicated the task is, we'd like to turn it into a single click. Is that possible? Not without webcommander :)
MIT License
165 stars 47 forks source link

Question: Write some progress bar #161

Open E-M opened 8 years ago

E-M commented 8 years ago

Hi

I have PowerCLI script which does quite a few tasks so it takes quite a lot of time. Right now we get response and output only after all tasks are completed. This is not a good user experience, because they don't see any progress and sometimes they just kill task because they think "it is not working".

So my question is - is it possible to print some status output after each task not only after script ended? Perhaps print some progress bar? We are using only command line interface with curl.

Zsoldier commented 8 years ago

https://blogs.technet.microsoft.com/heyscriptingguy/2011/01/29/add-a-progress-bar-to-your-powershell-script/

E-M commented 8 years ago

Hi

Sorry, I guess I was not clear enough. We are running that script like this:

curl https://webcommander.local/webCmd.php?command=SomeLongCommand

I was thinking, is it possible to use writeCustomizedMsg function after every command and return it as http content.

I don't think PowerShell's write-progress will help here.