This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: Python not reading result from bash command
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Mon, 23 Nov 2015 10:03:56 -0500
- Subject: Re: Python not reading result from bash command
- Authentication-results: sourceware.org; auth=none
- References: <DUB126-W46B458D42BA7E8C49355ECCE070 at phx dot gbl> <DUB126-W534041AEF6C47F1D909BBDCE070 at phx dot gbl> <5652D8B2 dot 8060809 at gmail dot com> <DUB126-W14387E767F8AC5B1860D4CCE070 at phx dot gbl>
On 11/23/2015 4:25 AM, Aaron Schneider wrote:
> ----------------------------------------
>> Subject: Re: Python not reading result from bash command
>>
>> what is adb ?
>>
>> I suspect it is mainly pty communication (or lack of) between
>> cygwin and not cygwin programs.
>> See
>> https://github.com/mintty/mintty/issues/56
>
> adb is the Android Debugging Bridge. It's a command to communicate with any android smartphone and execute commands inside or get a results (kind of chroot+remote shell). So I'm trying to get the date of the device with that adb command and operate with it. I've checked the same exact bash command on Windows Powershell (%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe) and works perfectly the way I want it. Looks like the windows poweshell has some kind of bash+tools inside which are very powerful (much more than command.com which is the msdos tool and doesn't allow the bash syntax.
>
> I'll report the issue to MinTTY and see if they can look further into the issue.
>
If this is a PTY issue then MinTTY won't be able to help that I know of.
Windows Powershell uses .NET objects for it's methods. So if .NET can
do it so can Powershell.
The PTY issue has tried to be debugged to work with Cygwin -> Non-Cygwin
for years with no luck. It's simply impossible ATM.
--
cyg Simple