I’m trying to figure out a way to force STDOUT to be synchronized when
I run scripts with Ruby. I’m using emacs and MKSNT on Windows XP, and
I can’t see the output (nor give input) when I run things like the
generate script for Rails, the WEBrick server, etc. because output is
buffered.
I tried putting -e “STDOUT.sync = true” before my script invocation,
but it looks like Ruby doesn’t run a given script file if the -e is
given. Boo.
Does anyone know a way to fix this? I can run the scripts outside of
emacs, but it’s a real pain…
This last suggestion would be great, but it doesn’t work. Ruby doesn’t
run the script given at the end of the command line if you have one or
more -e switches. This, too, seems like something that could/should be
changed…
This last suggestion would be great, but it doesn’t work. Ruby doesn’t
run the script given at the end of the command line if you have one or
more -e switches. This, too, seems like something that could/should be
changed…