How to pass a multiline arg to exec('some.exe arg')?

n00m n00m at narod.ru
Mon May 5 07:34:18 EDT 2008


actually, it's this doesn't work (again, in VBS the "same"
construction works properly):

f = os.popen('osql -E -S(local) -dpubs -w800 -Q"' + query + '"', 'r')

res=f.readlines()

=======
here "query" is a multiline string like:

select getdate()

    select 555*666

select getdate()



More information about the Python-list mailing list