Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loger = function()
- while true do
- local e, p1, p2 = os.pullEvent ()
- file = fs.open ("serverlog", "a")
- file.writeLine (e.. " " ..p1..": ".. p2)
- file.close()
- end
- end
- system = function()
- while true do
- term.setCursorPos (1, 1)
- term.clear()
- if fs.exists ("startup1") then
- shell.run ("startup1")
- else
- shell.run ("shell")
- end
- end
- end
- parallel.waitForAny (loger, system)BarrBarr: test 1
- BarrBarr: test 1
- BarrBarr: test 2
- BarrBarr: test 2
- BarrBarr: test 3
- BarrBarr: test 3
- BarrBarr: test 4
- BarrBarr: test 4
- BarrBarr: test 5
- BarrBarr: test 5
- BarrBarr: test 6
- BarrBarr: test 6
- BarrBarr: test 7
- BarrBarr: test 7
- BarrBarr: test 8
- BarrBarr: test 8
- BarrBarr: test 9
- BarrBarr: test 9
- BarrBarr: test 10
- BarrBarr: test 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement