On 26 Apr 2008, at 11:24, Gi Ga wrote:
> How to show servers uptime on rails page?
def uptime
`uptime`
end
If you are working on Linux or MacOS X that is. You can then parse the
result using regex if needed, which is something like "11:40:31 up 72
days, 9:27, 1 user, load average: 0.02, 0.15, 0.26\n".
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---