os.system and subprocess odd behavior
Hans Mulder
hansmu at xs4all.nl
Tue Dec 18 17:46:11 EST 2012
More information about the Python-list mailing list
Tue Dec 18 17:46:11 EST 2012
- Previous message (by thread): os.system and subprocess odd behavior
- Next message (by thread): os.system and subprocess odd behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 17/12/12 21:56:50, py_genetic wrote: > /usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root myDB < /home/myusr/jobs/APP_JOBS/JOB_XXX.SQL > /home/myusr/jobs/APP_JOBS/JOB_XXX.TXT If you're trying to interact with a MySQL database, then you should really use the myslqdb module. Trying to parse the output of the command-line utility is harder, and is too fragile for production use. Hope this helps, -- HansM
- Previous message (by thread): os.system and subprocess odd behavior
- Next message (by thread): os.system and subprocess odd behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list