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
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
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("
man, thats just too easy.
thanks much !
--
http://mail.python.org/mailman/listinfo/python-list
[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
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