os.spawnl and zip on linux

A M aseem at neurobs.com
Sun Aug 11 04:08:34 CEST 2002


"Stuart D. Gathman" <stuart at bmsi.com> wrote in message news:<U3g59.34814$Pb.823233 at news2.east.cox.net>...
> On Sat, 10 Aug 2002 17:52:42 -0400, A M wrote:
> 
> 
> > import os
>  
> > src_dir = 'some_dir'
> > cmd_apth = '/usr/bin/zip'
> > zip_file_name = 'res.zip'
>  
> > os.chdir(src_dir)
> > 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...



More information about the Python-list mailing list