Re: Running Python scripts from BASH

2007-02-28 Thread ina
On Feb 27, 11:16 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Ishpeck" <[EMAIL PROTECTED]> wrote: > > 8<--- a bash problem - > > If it were Python, the advice would have been to use the > print statement to figure out what the content of the > variables wer

Re: Running Python scripts from BASH

2007-02-28 Thread Hendrik van Rooyen
"Ishpeck" <[EMAIL PROTECTED]> wrote: 8<--- a bash problem - If it were Python, the advice would have been to use the print statement to figure out what the content of the variables were. As it is Bash, you may have to stoop to something like echo to see what is

Re: Running Python scripts from BASH

2007-02-27 Thread Ross Ridge
Ishpeck <[EMAIL PROTECTED]> wrote: >': [Errno 22] Invalid argumentopen file 'foo.py The problem is that Python is using the standard Windows CRLF line endings, while Cygwin bash expects Unix LF-only line endings. Your script ends up trying run the script "foo.y\r" instead of "foo.y", and since CR

Re: Running Python scripts from BASH

2007-02-27 Thread James Stroud
Ishpeck wrote: > I'm using Python to automate testing software for my company. I > wanted the computers in my testing lab to automatically fetch the > latest version of the python scripts from a CVS repository and then > ask a local database server which of the scripts to run. > > I built the fo

Re: Running Python scripts from BASH

2007-02-27 Thread Ben Finney
"Ishpeck" <[EMAIL PROTECTED]> writes: > I'm using Python to automate testing software for my company. I > wanted the computers in my testing lab to automatically fetch the > latest version of the python scripts from a CVS repository and then > ask a local database server which of the scripts to r

Re: Running Python scripts from BASH

2007-02-27 Thread Ishpeck
It may be worth noting that I'm running Cygwin on WindowsXP professional. -- http://mail.python.org/mailman/listinfo/python-list

Running Python scripts from BASH

2007-02-27 Thread Ishpeck
I'm using Python to automate testing software for my company. I wanted the computers in my testing lab to automatically fetch the latest version of the python scripts from a CVS repository and then ask a local database server which of the scripts to run. I built the following: #!/bin/bash # Bat