side = "back"
side2 = "left"
while true do
event = os.pullEvent()
if event == "redstone" and rs.getInput(side) == true then
shell.run('monitor','right', 'secret/alongtimeago')
elseif event == "redstone" and rs.getInput(side2) == true then
shell.exit('monitor','right')
end
end