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

Cant read redirected STDIN #1

Open
jakubfijolek opened this issue Jan 2, 2017 · 4 comments
Open

Cant read redirected STDIN #1

jakubfijolek opened this issue Jan 2, 2017 · 4 comments

Comments

@jakubfijolek
Copy link

first of, great program.
But i have an issue trying to redirect commands stored in files.
./ws wss://servername < file
causes EOF message end exit.
However stdout redirection works allright and i can ./ws servername > file without any issues (other than blindtyping commands).

Ubuntu 16.04 but same issue occurs on Debian 8

@xaionaro
Copy link

./ws wss://servername < file

As a hacky workaround you can try:

( cat file; sleep 1 ) | ./ws wss://servername

@KITSAryadebBanerjee
Copy link

is there a command using which I can close the ws session?

@xaionaro
Copy link

@KITSAryadebBanerjee: you can press ctrl+d

@KITSAryadebBanerjee
Copy link

@xaionaro Thank you for your reply.I was actually looking for a dos command which can end the session.I was looking to write a batch file which will capture details and then open the socket connection.,pass the data and close the connection.This activity will be done in time intervals..

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

3 participants