Posted 01 June 2012 - 03:54 PM
As the title said is there a way to permanently or constantly run a program through a monitor?
while true do
...
end
If you want to know how to use the monitor, you needmonitor = peripheral.wrap("side") -- replace side with the side the monitor's on
term.redirect(monitor)
...
term.restore() -- only if you want it back on the computer again
local mon = peripheral.wrap("<side>") -- replace <side> with the side of the monitor
if not mon the
print("No monitor found")
return
end
term.redirect(mon)
-- Your program code here
term.restore() -- to go back to the terminal
But if you want to run every program in the monitor, make a program with this:
local mon = peripheral.wrap("<side>") -- replace <side> with the side of the monitor
if not mon the
print("No monitor found")
return
end
term.redirect(mon)
When you run it, the output will be redirected to the monitor. But you won't see anything on the terminal, so it will be hard to write.