-reorganized/cleaned up python_apps/pypo directory.
This commit is contained in:
parent
f66305e3d3
commit
9cfec2c8ef
42 changed files with 14 additions and 338 deletions
13
python_apps/pypo/liquidsoap_scripts/library/ask-liquidsoap.rb
Executable file
13
python_apps/pypo/liquidsoap_scripts/library/ask-liquidsoap.rb
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
require 'net/telnet'
|
||||
|
||||
liq_host = "localhost"
|
||||
liq_port = 1234
|
||||
|
||||
conn = Net::Telnet::new("Host" => liq_host, "Port" => liq_port)
|
||||
|
||||
conn.puts(ARGV[0])
|
||||
conn.waitfor("Match" => /^END$/) do |data|
|
||||
puts data.sub(/\nEND\n/,"")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue