websockets / wscat

WebSocket cat
MIT License
2.25k stars 223 forks source link

Error while running with nohup #118

Open dm222 opened 4 years ago

dm222 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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