os.spawnl and zip on linux

Stuart D. Gathman stuart at bmsi.com
Sat Aug 10 22:38:45 EDT 2002


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]
 

-- 
	      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