You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to run an external task from my command that may ask the user for input.
What's the best way of passing through requests for input (I assume from the external task's stdout) to the user, and also passing the user's input to the external tasks stdin?
A very simple example:
I'd like to run sudo echo hello as an external task and have the user be notified when sudo asks for their password. How could I accomplish that with the Task API?
The text was updated successfully, but these errors were encountered:
Which results in prompting the user for their password, but I can't figure out how to pass input to the command through to the Task.
I also see there is a Task.execvp which causes input to go to the subcommand, but it seems to mean that the rest of the current command won't be executed.
I'd like to run an external task from my command that may ask the user for input.
What's the best way of passing through requests for input (I assume from the external task's stdout) to the user, and also passing the user's input to the external tasks stdin?
A very simple example:
I'd like to run
sudo echo hello
as an external task and have the user be notified when sudo asks for their password. How could I accomplish that with theTask
API?The text was updated successfully, but these errors were encountered: