problem using subprocess.call

Alex Kachanov nntp2 at alex29.dp.ua
Thu Oct 26 07:36:17 EDT 2006


Hi!
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 {} \;"])
__
returns:
__
find: /home/clients/alex291_ftp0/domains/domain.com/html/test -name 
'*.zip' -execdir unzip {} \;: No such file or directory
__

Maybe I should change some escape-symbols? Which of them?
Tricks with
r"..."
"""..."""
\\
didn't help...






More information about the Python-list mailing list