subprocess problem

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Thu Sep 29 16:33:23 EDT 2005


Hi !

Thank you very much.

With your tip, this script :

        import os
        p = os.popen4(r'cmd /k')
        p[0].write('dir *.bat /B\r\n')
        p[0].flush()
        p[0].write('dir *.cfg \r\n')
        p[0].flush()
        p[0].write('exit\r\n')
        p[0].flush()
        print ''.join(p[1].readlines())

run perfectly

@-salutations

Michel Claveau






More information about the Python-list mailing list