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

Error while running with nohup #118

Open
dm222 opened this issue Feb 29, 2020 · 2 comments
Open

Error while running with nohup #118

dm222 opened this issue Feb 29, 2020 · 2 comments

Comments

@dm222
Copy link

dm222 commented Feb 29, 2020

When run
wscat -c "127.0.0.1:8000" -x 'text'
Message is sent

If run
nohup wscat -c "127.0.0.1:8000" -x 'text' &
getting an error:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: EBADF: bad file descriptor, read

Version wscat is 4.0.0
Lubuntu 18.04, kernel 5.3.0-40-generic

@andypayne
Copy link
Contributor

Does running it in a subshell work for you?
(nohup wscat -c "127.0.0.1:8000" -x 'text' &)
or
sh -c 'nohup wscat -c "127.0.0.1:8000" -x "text" &'
or
nohup sh -c 'bin/wscat -c "127.0.0.1:8000" -x "text" &'

@haug1
Copy link

haug1 commented Nov 9, 2020

No, it does not work. Immediate exit. Alpine linux, please try to fix

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