Hi,
It's perfectly possible to register a telnet command, for instance:
set("server.telnet",true)
def my_command (arg) =
print("The telnet command was called with argument #{arg}")
"Command executed"
end
server.register("test_command", my_command)
output.dummy(sine())
When you connect to telnet interface and type "test_command abc", the
script will print "The telnet command was called with argument abc". I
guess you can then easily start from this example to achieve what you want!
++
Sam.
On Fri, Jan 4, 2013 at 9:36 PM, Tony Miller <[email protected]> wrote:
> Hi, I found a thread with a script similar to what I want to achieve:
>
> http://permalink.gmane.org/gmane.comp.audio.liquidsoap.user/218
>
> (I'm not sure how to reply to old messages, or if its possible when I
> don't have the original message in my inbox, so I hope just showing
> the link is sufficient.)
>
> Anyway, in this script, a file is polled to check for the current dj.
> Instead of polling, would there be some way to send commands to
> liquidsoap via telnet, and
> set up some sort of listener to respond to this command?
>
> I'm sure the polling works fine, I'm just a bit curious.
>
> Thanks!
> -Tony
>
>
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users