os.spawnl and zip on linux

A M aseem at neurobs.com
Mon Aug 12 13:04:18 EDT 2002


"Stuart D. Gathman" <stuart at bmsi.com> wrote in message news:<V6k59.35636$Pb.835737 at news2.east.cox.net>...
> On Sat, 10 Aug 2002 22:08:34 -0400, A M wrote:
> 
> > "Stuart D. Gathman" <stuart at bmsi.com> wrote in message
>  
> >> > result = os.spawnl(os.P_WAIT,cmd_path,'-rv',zip_file_name,'.')
>  
>  result = os.spawnl(os.P_WAIT,cmd_path,'zip',-rv',zip_file_name,'.')
> >> > print result
>  
> > cmd_path is the command : /usr/bin/zip = zip it is the command I am
> > tryin gto execute...
> 
> Yes, but you forgot argv[0]


Thanks a lot.... however I am using /usr/bin/unzip in exactly the same
manner as outlined for zip and that seems to work everytime.... I
wonder why???

Thanks.
AM



More information about the Python-list mailing list