Re: How to get inputs for a python program that run from another python program

2007-06-12 Thread pyscottishguy
On Jun 11, 7:47 am, pradeep nair <[EMAIL PROTECTED]> wrote: > I would like to know how to pass keyboard input for a python script > which is ran by another script. > > for eg: > > hello1.py: > > import os > > if __name__=='__main__': > > print "I will call this other program called hello.py" >

Re: How to get inputs for a python program that run from another python program

2007-06-11 Thread René Fleschenberg
Hi pradeep nair schrieb: > now wen i run hello1.py,i want the some function or utility in > hello1.py that can pass the keyboard i/p to hello.py . Have a look at subprocess.Popen http://docs.python.org/lib/module-subprocess.html -- René -- http://mail.python.org/mailman/listinfo/python-list

How to get inputs for a python program that run from another python program

2007-06-11 Thread pradeep nair
I would like to know how to pass keyboard input for a python script which is ran by another script. for eg: hello1.py: import os if __name__=='__main__': print "I will call this other program called hello.py" os.system("python hello.py") print "hello1.py" hello.py: import os