As part of an automated test, I have a python script that needs to call two shell scripts that start two different servers that need to interact after the calling script ends. (It's actually a jython script, but I'm not sure that matters at this point.) What can I do to ensure that the servers stay up after the python script ends?
At this point they're called something like this:
15 def runcmd(str, sleep):
18 debug('Inside runcmd, executing: ' + str)
20 os.chdir("/new/dir/")
22 directory = os.getcwd()
24 print 'current dir: '+ directory
25 os.system(str)
34 t = threading.Thread(
35 target=runcmd,
36 args=( cmd, 50,)
37 )