ruby is your shell and you have no password?
AFAIK, the closest in Ruby would be something like:
for i in 1..10 do
puts "This works too! Number " + i.to_s
end
As for passwords, I boot directly into single-user mode and start the network manually. It's the only way to be sure.