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

Exeucte a system command in python script

2006-06-08 Thread ken . carlino
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_Branding=true' Which of the execl comma

Regular Expression question

2006-06-07 Thread ken . carlino
Hi, I am new to python regular expression, I would like to use it to get an attribute of an html element from an html file? for example, I was able to read the html file using this: req = urllib2.Request(url=acaURL) f = urllib2.urlopen(req) data = f.read() my question is how can I jus

python newbie question

2006-02-26 Thread ken . carlino
I am new to python, can you please tell me how can I convert my python script into an executable on linux? i.e. instead of typing 'python myscript.py abc', I just need to do 'myscript.py abc'? and how can I get the input argument from my script , in my example, how can I read 'abc'? Thank you. --