As part of an automated test, I have a python script that should call two shell scripts that start two different servers, which should interact after the script call is completed. (This is actually a jython script, but I'm not sure if this is important.) What can I do to ensure that the servers stay after the python script completes?
At this point, they are called something like this:
def runcmd(str, sleep): debug('Inside runcmd, executing: ' + str) os.chdir("/new/dir/") directory = os.getcwd() print 'current dir: '+ directory os.system(str) t = threading.Thread( target=runcmd, args=( cmd, 50,) )
source share