Re: Redirecting bash stdin

2006-05-07 Thread Doug Bohl
Hmmm... I'll take a look at your code if I get time, but here's an inefficient (yet simple) solution that would at least work: You could start Cygwin/bash in an invisible DOS prompt window, and send commands to it by simulating keystrokes (PostMessage or SendMessage... WM_KEYDOWN, WM_KEYUP). Yeah

Re: Redirecting bash stdin

2006-04-30 Thread Dave
>>>According to Dave on 4/21/2006 11:45 AM: >>> I'm trying to get a mingw GUI application to pipe commands to cygwins bash by redirecting its stdin as described here . Buchbinder, Barry (NIH/NIAID) [E] wrote: Have you tried piping into "bash -

RE: Redirecting bash stdin

2006-04-25 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
Dave wrote: > Eric Blake wrote: >> According to Dave on 4/21/2006 11:45 AM: >> >>> I'm trying to get a mingw GUI application to pipe commands to >>> cygwins bash by redirecting its stdin as described here >>> . >> >> Why not just spawn bash with command li

Re: Redirecting bash stdin

2006-04-24 Thread Dave
Eric Blake wrote: According to Dave on 4/21/2006 11:45 AM: I'm trying to get a mingw GUI application to pipe commands to cygwins bash by redirecting its stdin as described here . Why not just spawn bash with command line arguments, and use the -c flag

Re: Redirecting bash stdin

2006-04-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dave on 4/21/2006 11:45 AM: > I'm trying to get a mingw GUI application to pipe commands to cygwins > bash by redirecting its stdin as described here > . Why not just spawn bash with command line a

Redirecting bash stdin

2006-04-21 Thread Dave
I'm trying to get a mingw GUI application to pipe commands to cygwins bash by redirecting its stdin as described here . This nearly works. 1. Start app. 2. Spawn bash with redirected stdin. bash process visible in process explorer. 3. Send command1 to