Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- kernel.lua
- local function runShell()
- while true do
- write("> ")
- local command = read()
- if command == "exit" then
- break
- else
- local result = os.run({}, "/bin/" .. command .. ".lua")
- if not result then
- print("Команда не найдена!")
- end
- end
- end
- end
- runShell()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement