Alex Kachanov wrote:
>>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?
because there's no one around to split them up for you.
after all, that's the whol
>>
>> 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
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",
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
'*.zi