編輯:我的最終代碼是這樣的: #WARNING: all " in command need to be escaped: \\"
def spawnInNewTerminal(command):
#creates lock file
lock = open(lockPath, 'w')
lock.write("Currently performing task i
我在我的Ruby on Rails服務器(運行在Linux上)中重構了一些併發處理以使用Spawn。那分叉過程Spawn::fork_it文檔索賠仍然可以取出來之後被伺候:https://github.com/tra/spawn/blob/master/lib/spawn.rb(行186): # detach from child process (parent may still wait fo