HI, 

It seems the version of Riv I'm running won't let me put in ' or " marks....

Bit of a pain really...  To be honest I have no idea how to set up the RLM's in 
the new versions. Completely new to me...

John

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: 03 July 2014 15:17
To: User discussion about the Rivendell Radio Automation System
Subject: Re: [RDD] Now Playing.txt

On 2014-07-03 14:53, Tom wrote:
> Good Afternoon
> We have Rivendell set up so that it spits out a nowplay.txt file each 
> time the song changes in rivendell. We have done this by adding the 
> following RML command into the 'Edit Now & Next Window' RN echo %a - 
> %t>/home/rd1/export/playing.txt!
> The script works however the script, at irregular intervals, appears 
> to stop working. Upon investigation it looks as though whenever a & or 
> an apostrophe enters the title or artist field, it appears to stop 
> working! Is there a reason for this or indeed does anybody have a 
> solution for this?

Hi. It's not an rivendell issue. It's a shel 'problem'.

RN echo %a - %t>/home/rd1/export/playing.txt!

will run a shell command and %a / %t will be replaced by the artist and title 
text.
When a field contains a bash/shell special char it will break or do nasty stuff 
on your system

You could try to escape/encapsulate the string in quotes like this:

RN echo '%a - %t'>/home/rd1/export/playing.txt!

or

RN echo "%a - %t">/home/rd1/export/playing.txt!

this way the & will not be interpreted as shell special char.
but… the first one will break if there is a ' in the string, second one will 
break if there is a " in the string.

Instead try please try to use rivendell modules. There are several rlm's that 
do title streaming to servers and textfiles:

http://rivendell.tryphon.org/wiki/Streaming_from_Rivendell

Best regards
Sascha

--
astrastudio
broadcast solutions - on air design
Prinz-Eugen Straße 42
53757 Sankt Augustin
fon: +49 2241 591972
mobile: +49 151 29126299
mail: [email protected]
web: www.astrastudio.de
USt-IdNr: DE 266329487
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to