public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: cyg Simple <cygsimple@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: Python not reading result from bash command
Date: Mon, 23 Nov 2015 15:03:00 -0000	[thread overview]
Message-ID: <56532ADC.3080303@gmail.com> (raw)
In-Reply-To: <DUB126-W14387E767F8AC5B1860D4CCE070@phx.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

      reply	other threads:[~2015-11-23 15:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23  9:02 Aaron Schneider
2015-11-23  9:04 ` Aaron Schneider
2015-11-23  9:13   ` Marco Atzeri
2015-11-23  9:26     ` Aaron Schneider
2015-11-23 15:03       ` cyg Simple [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56532ADC.3080303@gmail.com \
    --to=cygsimple@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).