Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

IO redirection not working (OSX)? #83

Closed
mrbrdo opened this issue Nov 22, 2015 · 2 comments
Closed

IO redirection not working (OSX)? #83

mrbrdo opened this issue Nov 22, 2015 · 2 comments

Comments

@mrbrdo
Copy link

mrbrdo commented Nov 22, 2015

I only tried this on OSX but it seems like IO redirection is not working properly. I built nailgun like it says on the wiki (configure/make in tools/nailgun).

I run the server with jruby --ng-server.
Then I tried running irb with jruby --ng -S irb. It displays the prompt but then I cannot get it to do anything more, it's like it's not getting my input. Input is taken from the server's terminal but echoed back on the client, and the prompt is displayed on the client but all other output is on the server.
I also tried ruby --ng -e "puts 'hello'; s = STDIN.getc; puts s", but hello is displayed on the server's terminal instead of the client's. Then getc also does not react to input on the client, and on the server's terminal I had to type several characters before it then echoed the last one back to me. After the script is finished, on the client's terminal the characters I typed in while the script was running are then sent and executed to by the shell (e.g. if I typed ls <enter> then ls was executed).

This seems to not be working pretty obviously for me, am I doing something wrong?

@niclasnilsson
Copy link

Did you solve this problem? I'm experiencing the same thing and I'm interested in if and how you solved it.

@sbalabanov-zz
Copy link
Contributor

Closing all issues older than 6 months; please reopen if it is still relevant

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants