spawn or fork

C Gillespie csgcsg39 at hotmail.com
Wed Dec 8 05:22:48 EST 2004


Dear All,

I have a function
def printHello():
    fp = open('file','w')
    fp.write('hello')
    fp.close()

I would like to call that function using spawn or fork. My questions are:

1. Which should I use
2. How do I call that function if it is defined in the same file.

Many thanks

Colin





More information about the Python-list mailing list