Finding child pids

Donn Cave donn at drizzle.com
Tue Mar 18 17:33:52 CET 2003


Quoth Ben Hutchings <do-not-spam-ben.hutchings at businesswebsoftware.com>:
| In article <m3d6kq8gsr.fsf at intevation.de>, Bernhard Herzog wrote:
| <snip>
| [re popen]
|> Don't use a string. Use a list of strings with one string for each
|> argument. E.g. instead of
|> 
|> "mycommand arg1 arg2" use ["mycommand", "arg1", "arg2"]
|> 
|> This has the additional benefit that you don't have to worry about
|> quoting.
|
| Aha!  Unfortunately this does not appear to be documented.  (In fact I
| don't see any documentation of the type of the command given to popen.)

Well, note that it doesn't apply to popen - only to popen2 et al.
But still, it does not seem to be as well documented as it should be,
considering that this has important security consequences.

	Donn Cave, donn at drizzle.com




More information about the Python-list mailing list