I've been testing this out and can't find an obvious solution but I do 
have some suggestions.

First your script runs excessively while inside the loop so it would be 
wise to add a sleep 20 or 30 as surely you don't need to check the time 
as fast as humanly possible and keep sending out LC messages?

Furthermore, I'm not sure if this is a quirk of my dev setup or whether 
this is the issue you're facing.  Test this with a simple script:

#!/bin/bash
rmlsend LC\ green\ "TEST"\!
echo TEST >> /home/rd/scripts/im_alive

What I've found is that the rmlsend is not being sent/received however 
the im_alive file is getting updated with each click.  If I get the 
chance I'll get into a studio and see if its the same problem.

As you mentioned, if you run the script manually (outside of Riv) then 
everything works fine.  Its almost as if its some sort of permissions 
problem but its a weird one either way.

I also believe there is a Rivendell cron timer you can hook into for 
repeated scripts so it may be worth looking at that rather than having a 
sleeping script.

Wayne Merricks
The Voice Asia

On 31/07/12 07:17, Stan Fotinos wrote:
> Hi All
>
> I have created a simple script that tell presenters when the next break
> is due. When I try to run it using a macro from within Rivendell it does
> not run.
>
> Macro:
>
> RN /home/rd/scripts/break10.sh!
>
> It does however run when I simply click on it, so it is executable.
>
> Can anyone tell why this is happening?
>
> (I have successfully run the RN macro before but only under version
> 1.7.2 has something changed...)
>
> Rivendell 2.1.5
> Centos (install disc)
>
> This is the script in case someone finds it useful:
>
> #!/bin/bash
> MINUTE=$(date +"%M")
> HOUR=$(date +"%H")
> while [ $MINUTE -lt 10 ]
> do
>       rmlsend LC\ green\ "Next Break at"\ $HOUR\ ":10"\!
>       MINUTE=$(date +"%M")
> done
> rmlsend LL\ 3\ PLAY_NOW\ 0\!
>
>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


#######################
Scanned by MailMarshal
#######################

############

Attention: 

The information contained in this message is confidential and intended 
for the addressee(s) only. If you have received this message in error 
or there are any problems, please notify the originator immediately.
The unauthorised use, disclosure, copying or alteration of this message
is strictly forbidden. Christian Vision or any of its subsidiaries will
not be liable for direct, special, indirect or consequential damages 
arising from alteration of the contents of this message by a third party
or as a result of any virus being passed on. Please note that we reserve
the right to monitor and read any e-mails sent or received by the 
company under the Telecommunications (Lawful Business Practice) 
(Interception of Communications) Regulation 2000. Christian Vision is 
registered in England as a limited company 2842414 and as a charity 
1031031  

############
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to