q icon indicating copy to clipboard operation
q copied to clipboard

Support output to stdout?

Open skorokithakis opened this issue 8 years ago • 4 comments

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?

skorokithakis avatar Jan 30 '17 19:01 skorokithakis

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)

v-python avatar Apr 25 '18 21:04 v-python

@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.

skorokithakis avatar Mar 04 '19 04:03 skorokithakis

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

ushuz avatar Oct 04 '21 07:10 ushuz