Skip to content
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

Why crconsole would not exit when I redirect the stdin with an input file ? #34

Open
zyscoder opened this issue Jul 6, 2020 · 4 comments

Comments

@zyscoder
Copy link

zyscoder commented Jul 6, 2020

I am sorry to bother you. I try to redirect stdin with an input file to send my javascript code to crconsole, and I am confused why the process of crconsole would not exit after it received all the input. Would you mind giving me some advice about this problem if you have any idea?

@sidorares
Copy link
Owner

you probably need to close stdin ( just a guess ).

It's been a while I had a look at this project, can you a bit of context why are you redirecting stdin and what's expected result?

@zyscoder
Copy link
Author

zyscoder commented Jul 6, 2020

This is my context. The process of crconsole cannot exit otherwise I a give it another ^C.
2020-07-06 19-27-27 的屏幕截图
My expect of it is like the behavior of nodejs, who can exit the process nomally after executing all the code.
2020-07-06 19-29-54 的屏幕截图

@sidorares
Copy link
Owner

Yeah, at the moment it always starts in repl mode, I can see that "execute and exit" might be useful

@zyscoder
Copy link
Author

zyscoder commented Jul 6, 2020

Is there any way to achieve the "execute and exit"? Maybe I can have a try.

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

No branches or pull requests

2 participants