I am new to Python. I ran into a problem below.
I called exe using subprocess.check_output from my python script.
res = subprocess.check_output(["svn.exe", "list", "Https://127.0.0.1:443/svn/Repos"], stderr=subprocess.STDOUT)
when the script is executed on the command line, I get a prompt to enter input,
(R)eject, accept (t)emporarily or accept (p)ermanently?
But when I execute the script from the batch file, I do not receive this message, and by default the check_output call fails.
Is there any way to pass input during subprocess.check_output call so that I can run the script in batch mode.
Hi, I am updating my question: I tried to start svn from the command line with the following command:
echo t | svn.exe list Https:
I got the result without user input.
But I could not pass echo t | in subprocess.check_output . Is there any way to do this?
Please help me solve this problem. Thanks
source share