Posted Oct 6, 2006 11:08 UTC (Fri) by scottt
In reply to: PHP is the new C
Parent article: Report: Vulnerability type distributions in CVE
Easy access to a fork and exec function that takes an argument list instead of a string is indeed key.
In python you do:
r = subprocess.call(['ls', '/tmp'])
and you can pass a string through the shell if you really want to:
r = subprocess.call(['ls /tmp'], shell=True)
You can also pass in a function to be executed between fork and exec to set resource usage limits, redirect standard input/output etc.
One part of the python standard library that I really appreciate.
to post comments)