I have this very simple spawn command, where (if not logged in) you'd need to enter email and password (one after each other). However, the command exits immediately after it completes and thus i can never input login details.window.terminal = spawn("nordvpn", ["login"], {env: process.env,shell: shell,cwd: process.env.HOME});later..window.terminal.stdin.write('myUsername');Which gives me an error:Error in v-on handler: "Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed"Can anyone help me out here? Thanks alot!
Submitted April 27, 2020 at 10:32AM by martijn-fme
No comments:
Post a Comment