Re: Exeucte a system command in python script

2006-06-09 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I am using python 2.4, so I don' t need to insteall that module > separately. > > [EMAIL PROTECTED] wrote: > >>Thanks I get this error 'NameError: global name 'call' is not defined" >> >>I already import 'subprocess'. >> >>Can you pleaes tell me what am I missing? Amon

Re: Exeucte a system command in python script

2006-06-08 Thread ken . carlino
I am using python 2.4, so I don' t need to insteall that module separately. [EMAIL PROTECTED] wrote: > Thanks I get this error 'NameError: global name 'call' is not defined" > > I already import 'subprocess'. > > Can you pleaes tell me what am I missing? > > Robert Kern wrote: > > [EMAIL PROTECTED

Re: Exeucte a system command in python script

2006-06-08 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Thanks I get this error 'NameError: global name 'call' is not defined" > > I already import 'subprocess'. > > Can you pleaes tell me what am I missing? Almost certainly you are doing something like this: import subprocess call(['something', 'or', 'other']) You ne

Re: Exeucte a system command in python script

2006-06-08 Thread ken . carlino
Thanks I get this error 'NameError: global name 'call' is not defined" I already import 'subprocess'. Can you pleaes tell me what am I missing? Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > > I would like to execute a shell command like this in python: > > cmd = 'ant release -Dbuil

Re: Exeucte a system command in python script

2006-06-08 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > > I would like to execute a shell command like this in python: > cmd = 'ant release -Dbuild=build_proxyonly -Drev=5.1.130f > -Dprops=\"-MIDP20_LARGE;PUSH_FEATURE=false;MIDlet-Version=5.0;version=5.0;MIDlet-Icon=midicon15x15.png;-FOUR_WAY_NAV_FEATURE\" > -DThree_Bra