os.spawnl and zip on linux

Stuart D. Gathman stuart at bmsi.com
Sun Aug 11 00:02:28 CEST 2002


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

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Python-list mailing list