[wingide-users] Re: Run a script with redirected STDIN/STDOUT
gituliar at gmail.com
Wed Feb 1 07:48:54 MST 2012
On Feb 1, 2012, at 2:21 PM, gituliar oleksandr wrote:
> I'm working on the script which reads STDIN and writes to STDOUT. While developing I'd like to
> * run the script with redirected STDIN from some file, similar to bash: '$ ./script.py < data.in'; and
> * same as above for debugging.
> It looks like the first case may be implemented using OS Commands tool. So, I defined a command "bash python2.7 script.py < data.in" which fails with "exit code of 126". Does anybody know what's wrong with it?
Solved: use "bash -norc -c './script.py < data.in'" with OS Command tool.
> As for the second I have no ideas, since Debug dialog proposes to provide only command line arguments.
Still have no idea...
> Please, anybody that faced similar problems share your experience.
More information about the wingide-users