ScriptOnIt / Docs Capturing shell output

There are two ways to capture console outputs. The first one is for short operations that take practically no time, like a dir command within one folder. For more time-consuming operations, you have to do a little more (but it's still very simple) - start capturing and provide two callbacks: one for following the progress as it goes, and another to be called when the operation has finished. This is an asynchronous way so you can go on doing other jobs & reacting on user interface; you can also stop the running process prematurely.

Let's see them in detail!

shell.shortCommand

shell.capture