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

Issue obtaining stdout from continuous command #20

Open
MattGroho opened this issue Jan 7, 2021 · 3 comments
Open

Issue obtaining stdout from continuous command #20

MattGroho opened this issue Jan 7, 2021 · 3 comments

Comments

@MattGroho
Copy link

Hi, I'm new to the nodejs workflow and have been trying to utilize a command for authorizing a user through another website where they obtain an auth key.

I've tried setting up the StatefulProcessCommandProxy and running the command to obtain a link to obtain the auth code, but stdout doesn't seem to pickup on the output of the command and returns a null string.

Some things I've tried are child_process which returns the auth url, but doesn't keep the process open continually to allow the user to enter their auth code. Any suggestions on how to fix the Stateful implementation would be much appreciated!

@bitsofinfo
Copy link
Owner

Hi - this module does not enforce, provide, facilitate any authentication or authorization. I don't understand your question.

@MattGroho
Copy link
Author

MattGroho commented Jan 7, 2021

The auth command is run through a shell environment, so I'm trying to utilize the StatefulProcess repo to open a session on bash to achieve this. I believe the problem occurs because the login command hasn't officially finished and asks for a key.

Is there any way to obtain a command's output while it's still being run?

Edit: If not I believe I've found another resource which would help my cause

@bitsofinfo
Copy link
Owner

please provide an example

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