how to pass "echo t
how to pass "echo t | " input to subprocess.check_output() method
dachakku at gmail.com dachakku at gmail.comMon Nov 26 05:36:02 EST 2012
- Previous message (by thread): Convert tuples into string
- Next message (by thread): how to pass "echo t | " input to subprocess.check_output() method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, I want to list the repositories in svn using python. For this i have used below command, " res = subprocess.check_output(["svn.exe", "list", "Https://127.0.0.1:443/svn/Repos"], stderr=subprocess.STDOUT) " but it throws an exception, since it requires an user input to validate certificate, " (R)eject, accept (t)emporarily or accept (p)ermanently? " from Command prompt im able to pass the input while calling the process, and im able to get the output "echo t | svn list Https://127.0.0.1:443/svn/Repos" But i dont know how to pass the "echo t | " in subprocess.check_output while calling a process. Is there a way to do this? Please help.
- Previous message (by thread): Convert tuples into string
- Next message (by thread): how to pass "echo t | " input to subprocess.check_output() method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list