LWN.net Logo

Very true

Very true

Posted Oct 6, 2006 11:08 UTC (Fri) by scottt (subscriber, #5028)
In reply to: PHP is the new C by dark
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.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds