From: <liq...@ao...> - 2012-06-27 23:47:29
|
If it's any help, I use the following to get the value of the current title from a database entry (where 'title.txt' is a returned value): elsif m["filename"] == "/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls" then content = list.hd(get_process_lines("cat /usr/local/www/rcr/radio/current/special/mp3/title.txt")) ("title", "Special Program - #{content}") Hth On Wed, 27 Jun 2012 17:10:16 -0400, Audiodef Online <on...@au...> wrote: > Thanks, Martin. > > But I have to confess to not knowing how to use this: > > (string)->[string] > > Perform a shell call and return the list of its output lines. > > (unlabeled) (string) > > I don't need hand-holding, but I learn best from examples. Is there an > example > somewhere I can read to see how it actually works in practice? > > Thanks, > Damien > > > On 06/27/12 20:32, Martin Konečný wrote: > > Look up "get_process_lines" function call. > > > http://savonet.sourceforge.net/doc-1.0.0/reference.html > > > > > O Wed, Jun 27, 2012 at 4:29 PM, Audiodef Online <on...@au...> > wrote: > > Is it possible to have a LS script execute an external script, wait for > the external script to return a value, and use that value? > > Specifically, I would like my LS script to parse the stream's metadata. > If the metadata has the literal string "unknown" (case insensitive) as > the title of the track, then the LS script should execute a PHP script > (via CGI, of course) and store the result of that script (which would be > exactly one value - a string) and then set the metadata of the current > track with the string retrieved from the PHP script. > > Can I do this? How would it be done? > > -- > My music: http://audiodef.com > Synthetronica: http://synthetronica.com > Male survivors of domestic violence: http://abusedmen.org > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Savonet-users mailing list > Sav...@li... > https://lists.sourceforge.net/lists/listinfo/savonet-users > > > -- Using Opera's revolutionary email client: http://www.opera.com/mail/ |