Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-28 Thread Miki Tebeka
On Wednesday, November 28, 2012 4:38:35 AM UTC-8, dach...@gmail.com wrote: > Thanks.. Creating two subprocesses worked for me. I did the code as below, Glad it worked. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-28 Thread dachakku
On Monday, 26 November 2012 21:10:02 UTC+5:30, Miki Tebeka wrote: > > But i dont know how to pass the "echo t | " in subprocess.check_output > > while calling a process. > > You need to create two subprocess and connect the stdout of the first to the > stdin of the 2'nd. > > > > See http://p

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Miki Tebeka
> But i dont know how to pass the "echo t | " in subprocess.check_output while > calling a process. You need to create two subprocess and connect the stdout of the first to the stdin of the 2'nd. See http://pythonwise.blogspot.com/2008/08/pipe.html for a possible solution. -- http://mail.python

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Kushal Kumaran
dacha...@gmail.com writes: > On Monday, 26 November 2012 16:32:22 UTC+5:30, Kushal Kumaran wrote: >> dacha...@gmail.com writes: >> >> >> >> > Hi all, >> >> > >> >> > I want to list the repositories in svn using python. For this i have used >> > below command, >> >> > " res = subprocess.che

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Duncan Booth
dacha...@gmail.com wrote: > Hi Duncan, > > I tried using --non-interactive --trust-server-cert, but the call > fails with error message, svn: E175002: OPTIONS of > 'https://127.0.0.1/svn/Repos': Server certificate verification failed: > certificate issued for a different hostname, issuer is not t

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread dachakku
On Monday, 26 November 2012 16:32:22 UTC+5:30, Kushal Kumaran wrote: > dacha...@gmail.com writes: > > > > > 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:

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread dachakku
On Monday, 26 November 2012 16:22:42 UTC+5:30, Duncan Booth wrote: > dacha...@gmail.com wrote: > > > > > 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

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Chris Rebert
On Nov 26, 2012 3:03 AM, "Kushal Kumaran" wrote: > dacha...@gmail.com writes: > > 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) " > > >

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Kushal Kumaran
dacha...@gmail.com writes: > 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 req

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Duncan Booth
dacha...@gmail.com wrote: > 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 req

Re: how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread Chris Rebert
On Nov 26, 2012 2:41 AM, wrote: > > 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 r

how to pass "echo t | " input to subprocess.check_output() method

2012-11-26 Thread dachakku
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 certifica