problem using subprocess.call

Alex Kachanov nntp2 at alex29.dp.ua
Thu Oct 26 14:14:30 CEST 2006


>> 
>> 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", 
> "{}", ";"])

Ok, thanks, it works.
But what's the difference? Why I can't pass all parameters as one string? 





More information about the Python-list mailing list