Pipe:close() method

Closes the Pipe and the associated process. Any further read/write/readerror operations won't achieve.

Return value

This method returns no value.

Example

local pipe = sys.Pipe("cmd.exe /C SET") -- list all current environment variables in the env_vars table sleep(200) local output = await(pipe:read()) local env_vars = {} pipe:close() for var, value in output:gmatch("(%w+)=(.-)\r\n") do env_vars[var] = value print("Variable `"..var.."` : \t", value) end