q
q copied to clipboard
Support output to stdout?
Sometimes it's impractical to read files in the system (e.g. when running in Docker), but the console is still functional. Can q support a flag that will allow it to print the output to stdout rather than to a file?
Needs to be more general that a flag for stdout. Granted the lightning talk showed potential issues with stdout and stderr, but sometimes they would be the best place. And sometimes, a user-specified file would be best, when running multiple processes with q concurrently, for example, having their output interleaved in one file would not always be appropriate (if that is even possible, not sure what file open modes q uses, hopefully shared and append, but still the ability for separate processes to use separate output files would be better, sometmes)
@zestyping What do you think about this? I would also like to reiterate my plea to add this project to Code Shelter, as this issue has gone unanswered for more than two years now.
Would love to have the ability to output to stdout. For example:
# output to /tmp/q for compat
import q
# output to stdout
import q.stdout as q