Re: problem using subprocess.call

2006-10-26 Thread Fredrik Lundh
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

Re: problem using subprocess.call

2006-10-26 Thread Alex Kachanov
>> >> 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

Re: problem using subprocess.call

2006-10-26 Thread Fredrik Lundh
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",

problem using subprocess.call

2006-10-26 Thread Alex Kachanov
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