[Tutor] os.system and/or subprocess.call problem...

Bill Campbell bill at celestial.net
Fri Jul 10 19:08:45 CEST 2009

On Fri, Jul 10, 2009, daychilde at gmail.com wrote:
>I'm working on a program that calls another program recursively - this other
>program reads in ini file and processes it; my program creates a number of
>slightly different ini files and calls the other program for each one.
>I can successfully generate the ini file. The problem is that the other
>program doesn't seem to execute it correctly; or is unable to read its
>contents. I'm not sure what's going on from the error it's giving me -
>basically, it says there's nothing to do in the ini, so that's why I think
>it's either not reading the ini, or perhaps it's being executed as the wrong
>user or something. (Linux environment)

Are you closing or flushing the output file before starting the subprocess?

INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

Thou shalt not steal, except by majority vote.

More information about the Tutor mailing list