Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Running Ruby scripts with LSL ?

thedp Edman
Registered User
Join date: 21 Jul 2007
Posts: 4
07-27-2007 06:39
I've read that it's possible to run a ruby script with LSL... But I couldn't understand how?
Is it true? Can I really run an external script with LSL?

Thank you.
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
07-27-2007 06:51
From: thedp Edman
I've read that it's possible to run a ruby script with LSL... But I couldn't understand how?
Is it true? Can I really run an external script with LSL?

Thank you.


Yes but you do it through llHTTPRequest calls, so it runs on the external server where Ruby is installed.
thedp Edman
Registered User
Join date: 21 Jul 2007
Posts: 4
07-27-2007 07:57
Can you please show me a LSL example?
Also, if that's the case can I use any kind of script, like Perl, PHP, etc. ?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
07-27-2007 08:13
All the info you need for the LSL side is here:

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llHTTPRequest

As for the Ruby side, you're on your own, but I would start here:

http://www.ruby-lang.org/
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
07-28-2007 00:05
As long as it's a webserver, returning output, you can use anything you want. PHP, Perl, ASP, Ruby, Java, etc. Hell, even JavaScript as long as it's valid output.

Lyn
Rubee Adelaide
Registered User
Join date: 2 Oct 2006
Posts: 15
07-31-2007 18:35
Try visiting the Rubyists of Second Life. Their HQ is in Kula. They might be able to answer these types of questions for you.