New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fio: provide access to stdin/stdout/stderr #1338
Comments
Who need this feature in 1.6.x? Please consider to move to 1.7.x |
There is no customer => wishlist |
Our team wants this feature ASAP! |
quite strange way (read as workaround) to do this fd = fio.open('/dev/null')
fd.fh = 2 -- or 1 for stdout
tarantool> fd:write('test')
test---
- true
... |
@igormunkin I think even if |
This patch introduces fio API for interaction with stdin/stdout/stderr streams. Closes #1338 @TarantoolBot document Title: fio provides access to stdin/stdout/stderr Now access to standard streams is available via: * fio.stdin * fio.stdout * fio.stderr Each of this streams have usual fio file interface. Example: ```lua fio.stdin:read(5) -- read 5 bytes from stdin fio.stdout:write("Hello") -- write "Hello" to stdout fio.stderr:write("Error") -- write "Error" to stderr ```
This patch introduces fio API for interaction with stdin/stdout/stderr streams. Closes #1338 @TarantoolBot document Title: fio provides access to stdin/stdout/stderr Now access to standard streams is available via: * fio.stdin * fio.stdout * fio.stderr Each of this streams have usual fio file interface. Example: ```lua fio.stdin:read(5) -- read 5 bytes from stdin fio.stdout:write("Hello") -- write "Hello" to stdout fio.stderr:write("Error") -- write "Error" to stderr ```
Sorry, it was a mistake. Reopened. |
Make it possible to read stdin/stdout/stderr using fio API. Update the documentation.
The text was updated successfully, but these errors were encountered: