I want to run a program in cygwin through command using python script from windows level and pass parameters for stdin. I read through many topics on stackoverflow already, but solutions which I have found don't work for me. Here is code based on stack topics:
from subprocess import Popen, PIPE
cygwin = Popen(['CYGWINPATH\\bash.exe', '-'],stdin=PIPE,stdout=PIPE)
cygwin.communicate(input="commandToRun")
This doesn't find proper command:
/usr/bin/bash: line 1: uname: command not found
('', None)
EDIT : Credit to matzeri for suggesting bash instead of mintty. Example: I have a python script on windows desktop and after doubleclick I want to open program inside of cygwin and pass parameters for stdin.