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
{{ message }}
Repository navigation
Can't redirect Process output when the process spawn a child. #42127
On Linux, I have tried to use the Process to spawn a new process to interact/manipulate with its output. However, I realized that if the process spawns a child process, on the same shell, you won't be able to retrieve the output of the child process. Is that the expected behaviour? Is there a way to do that?
Activity
tmds commentedon Sep 14, 2020
@danfma this is beyond .NET control.
gitdoesn't read the password from standard in, instead it opens up a terminal to prompt for the password. Maybe you find some inspiration here: https://stackoverflow.com/questions/31218599/supplying-a-password-to-git-in-a-bash-script.danfma commentedon Sep 14, 2020
Thank you, man! I will give a look! I have tried to spawn the terminal instead of the git directly, but it didn't work as well!
eiriktsarpalis commentedon Sep 14, 2020
Sounds like we can close this. Thanks @tmds