Running Python scripts from BASH
ina
erinhouston at gmail.com
Wed Feb 28 11:04:37 EST 2007
On Feb 27, 11:16 pm, "Hendrik van Rooyen" <m... at microcorp.co.za>
wrote:
> "Ishpeck" <ishp... at gmail.com> 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 in $i...
>
> hth - Hendrik
When you print the string in bash it looks correct. It isn't until you
try to execute it you have the problem.
os.system is the solution to this problem anyway.
More information about the Python-list
mailing list