ls rom
I would have an array like this:
{'ls', 'rom'}
My code:
while true do
if os.computerLabel() then
lbl = os.computerLabel()
else
lbl = os.computerID()
end
write("[email protected]"..lbl.." $ "..dir)
local command = read()
if command == "exit" then
break
else
local exists, path = findFile(command)
if exists then
shell.run(path)
else
print("Unknown command: "..command)
end
end
end
Any idead on how?












