Re: how do i run another script from my python script

2005-10-27 Thread nephish
well i know i dont want to do another thread, my program has six running all the time. whew. that can get nuts. i mean, this will come to me easier later i am sure. But right now. simple is best. thanks for all the suggestions, gents. right now i am just doing a varient of Steves suggestion, an

Re: how do i run another script from my python script

2005-10-27 Thread Mike Meyer
Daniel Schüle <[EMAIL PROTECTED]> writes: > Steve already answeared to your question, regaring PHP script > if this would be python script, you could run it by import'ing it That's not very pythonic. Better is to provide a function in the script to run it (say run), then run that in the script iff

Re: how do i run another script from my python script

2005-10-27 Thread Daniel Schüle
Steve already answeared to your question, regaring PHP script if this would be python script, you could run it by import'ing it #a.py print "in a" #b.py import a# prints "in a" print "in b" and of course other solutions import os if os.fork()==0: os.execv("

Re: how do i run another script from my python script

2005-10-27 Thread nephish
man, thats just too easy. thanks much ! -- http://mail.python.org/mailman/listinfo/python-list

Re: how do i run another script from my python script

2005-10-27 Thread Steve Holden
[EMAIL PROTECTED] wrote: > hey there all, > i have been looking for a way to run a php command line script from my > python script. > > here is what i want to do: > > if x = 4: > execute php4 testin.php > else: > execute php4 testout.php > > and i also need the script to wait untill the

how do i run another script from my python script

2005-10-27 Thread nephish
hey there all, i have been looking for a way to run a php command line script from my python script. here is what i want to do: if x = 4: execute php4 testin.php else: execute php4 testout.php and i also need the script to wait untill the php4 script is done (which i think is the default