Edo98:
> However, i'd like to do something else like send a string to a telnet
> server or do an HTTP request when something happens (on connect, error,
> disconnect etc.). Is it possible?

well, yes, you can request any command available on the console
via an external script, and then process the output. for example
i do it with a php prog which opens a socket connection. telnet
would also be possible.

...
# socket e.g. in /var/run/liquidsoap/my_sock 
set("server.socket", true); 
...

echo "help" | nc -U /var/run/liquidsoap/my_sock

some nc (netcat) don't have the -U option, there you could
also use "socat". 

here's an example of how to use php for it:
http://comments.gmane.org/gmane.comp.audio.liquidsoap.user/2976

--u



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to