problem using subprocess.call

Fredrik Lundh fredrik at pythonware.com
Thu Oct 26 07:55:12 EDT 2006


Alex Kachanov wrote:

> running py module with the following code from shell:
> __
>    dir=os.path.join(os.path.expanduser("~/domains/domain.com/html"),'test')
>    subprocess.call(['find',dir+" -name '*.zip' -execdir unzip {} \;"])

    subprocess.call(["find", dir, "-name", "*.zip", "-execdir", "unzip", "{}", ";"])

</F> 






More information about the Python-list mailing list