rednet.open("back") --shell.run("report") func1 = function() sleep(2) print("func1 terminate") end func2 = function() sleep(1) print("func2 teminate") end parallel.waitForAny(func1,func2)