Pipe:read( ) method

Reads from the Pipe (from the standard output of the executed process).

Return value

Returns a Task instance.
Once finished, the Task will return a string or nil if the standard output of the executed process is empty.

Example

local pipe = sys.Pipe('cmd /K dir /B') -- Shows current directory content local output = await(pipe:read()) print(output)