Re: [RDD] Macro cart / shell script woes

2020-01-07 Thread Robert Jeffares

Hi Drew,

you have to place the script somewhere in the $PATH of the user that 
runs Rivendell.


From memory you may have to chown or adduser so that whoever runs the 
macro cart has permission to run the script.


Primary reason for me to not run shell scripts from macros. Cron works fine!

HNY

Robert

On 8/01/20 12:20 pm, drew Roberts wrote:

I think I am doing something silly.

Bare bones explanation.

I have a macro cart that has one line:

RN /home/rd/genlogtest.sh!

cat genlogtest.sh shows:

#!/bin/bash
# test using rdcatch to generate logs in place of crond.


mydate=`date`
echo " Sustain Logs last run from rdcatch on: " $mydate > 
lastsustainlogrunrdcatch.txt
echo " Sustain Logs last run from rdcatch on: " $mydate > 
/tmp/lastsustainlogrunrdcatch.txt


exit 0

If I run the shell script from the terminal, I get the two files I expect.

If I run line from rdlibrary I see this in the logs:

Jan  7 18:17:41 rdpgplaza ripcd: received rml: 'RN 
/home/rd/genlogtest.sh!' from 127.0.0.2


If I run cart from rdlibrary I see this in the logs:

Jan  7 18:18:49 rdpgplaza ripcd: received rml: 'RN 
/home/rd/genlogtest.sh!' from 127.0.0.2


Either way, the files are not created or changed. I even tried chmod 
666 on the files to see if that was it, not joy.


Any thoughts as to how to proceed with troubleshooting?

all the best,

drew
--
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Feature request store shell scripts - may need some discussing.

2020-01-07 Thread drew Roberts
Mike,

just to be clear, what I am suggesting as a first option unless the sync
gets too hairy, is for external scripts that are "snapshotted" into the
rivendell database so that a backup and restore to a new machine gets
everything. Come to think of it, this would mean "snapshotting" the config
files in /etc too right?

all the best,

drew

On Tue, Jan 7, 2020 at 7:20 PM Mike Carroll  wrote:

> The IBM mainframe product I work on has a similar implementation of script
> locations. We have "events" that run scripts that are either embedded in
> the event's database definition or in an external file.
>
> The biggest issue our customers have with storing in the database is that
> the script is hidden from change management and auditing.  That's not so
> much the case with Rivendell, I imagine.
>
> You can't grep a database - yeah, yeah, SQL etc, but someone has to write
> the UI. 
>
> You're stuck with whatever editor the product (ours or Rivendell)
> implements, unless there are more changes to the product to configure and
> use an external editor.
>
> What we've found is that the database is useful for customers with small
> scripts or less-than-formal management, but for anything beyond that they
> prefer to use external files.
>
> On Tue, Jan 7, 2020 at 2:31 PM drew Roberts  wrote:
>
>> Something was said on list recently that made me want to move my
>> automatic log generation from a bash script run daily via crond to a bash
>> script run daily via rdcatchd.
>>
>> I am having some problems with that which I will address in another post.
>>
>> While trying to get that working and thinking for the reason for doing it
>> I had this vague idea:
>>
>> Store all bash scripts run via macro carts with RN commands in those
>> macro carts. Have rivendell create the bash scripts if it finds them
>> missing.
>>
>> For possible discussion:
>>
>> Should a separate folder structure be created for the storage of these
>> bash (and other?) scripts be used as opposed to the /home/rd (or whatever)
>> location I general use?
>>
>> When setting up a macro cart, and adding a line that has an RN command,
>> should rdlibrary import that bash/shell script?
>>
>> Is there a simple way to keep the in cart and in file system / directory
>> scripts in sync? Should they just live in rivendell and not in the file
>> system and just be created every time they need to be run? Would this be
>> too slow?
>>
>> What else am I missing? Is this a brain dead idea?
>>
>> all the best,
>>
>> drew
>>
>>
>>
>> --
>> Enjoy the *Paradise Island Cam* playing
>> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
>> ___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>>
>

-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Feature request store shell scripts - may need some discussing.

2020-01-07 Thread Mike Carroll
The IBM mainframe product I work on has a similar implementation of script
locations. We have "events" that run scripts that are either embedded in
the event's database definition or in an external file.

The biggest issue our customers have with storing in the database is that
the script is hidden from change management and auditing.  That's not so
much the case with Rivendell, I imagine.

You can't grep a database - yeah, yeah, SQL etc, but someone has to write
the UI. 

You're stuck with whatever editor the product (ours or Rivendell)
implements, unless there are more changes to the product to configure and
use an external editor.

What we've found is that the database is useful for customers with small
scripts or less-than-formal management, but for anything beyond that they
prefer to use external files.

On Tue, Jan 7, 2020 at 2:31 PM drew Roberts  wrote:

> Something was said on list recently that made me want to move my automatic
> log generation from a bash script run daily via crond to a bash script run
> daily via rdcatchd.
>
> I am having some problems with that which I will address in another post.
>
> While trying to get that working and thinking for the reason for doing it
> I had this vague idea:
>
> Store all bash scripts run via macro carts with RN commands in those macro
> carts. Have rivendell create the bash scripts if it finds them missing.
>
> For possible discussion:
>
> Should a separate folder structure be created for the storage of these
> bash (and other?) scripts be used as opposed to the /home/rd (or whatever)
> location I general use?
>
> When setting up a macro cart, and adding a line that has an RN command,
> should rdlibrary import that bash/shell script?
>
> Is there a simple way to keep the in cart and in file system / directory
> scripts in sync? Should they just live in rivendell and not in the file
> system and just be created every time they need to be run? Would this be
> too slow?
>
> What else am I missing? Is this a brain dead idea?
>
> all the best,
>
> drew
>
>
>
> --
> Enjoy the *Paradise Island Cam* playing
> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Macro cart / shell script woes

2020-01-07 Thread drew Roberts
I think I am doing something silly.

Bare bones explanation.

I have a macro cart that has one line:

RN /home/rd/genlogtest.sh!

cat genlogtest.sh shows:

#!/bin/bash
# test using rdcatch to generate logs in place of crond.


mydate=`date`
echo " Sustain Logs last run from rdcatch on: " $mydate >
lastsustainlogrunrdcatch.txt
echo " Sustain Logs last run from rdcatch on: " $mydate >
/tmp/lastsustainlogrunrdcatch.txt

exit 0

If I run the shell script from the terminal, I get the two files I expect.

If I run line from rdlibrary I see this in the logs:

Jan  7 18:17:41 rdpgplaza ripcd: received rml: 'RN /home/rd/genlogtest.sh!'
from 127.0.0.2

If I run cart from rdlibrary I see this in the logs:

Jan  7 18:18:49 rdpgplaza ripcd: received rml: 'RN /home/rd/genlogtest.sh!'
from 127.0.0.2

Either way, the files are not created or changed. I even tried chmod 666 on
the files to see if that was it, not joy.

Any thoughts as to how to proceed with troubleshooting?

all the best,

drew
-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Feature request store shell scripts - may need some discussing.

2020-01-07 Thread drew Roberts
Something was said on list recently that made me want to move my automatic
log generation from a bash script run daily via crond to a bash script run
daily via rdcatchd.

I am having some problems with that which I will address in another post.

While trying to get that working and thinking for the reason for doing it I
had this vague idea:

Store all bash scripts run via macro carts with RN commands in those macro
carts. Have rivendell create the bash scripts if it finds them missing.

For possible discussion:

Should a separate folder structure be created for the storage of these bash
(and other?) scripts be used as opposed to the /home/rd (or whatever)
location I general use?

When setting up a macro cart, and adding a line that has an RN command,
should rdlibrary import that bash/shell script?

Is there a simple way to keep the in cart and in file system / directory
scripts in sync? Should they just live in rivendell and not in the file
system and just be created every time they need to be run? Would this be
too slow?

What else am I missing? Is this a brain dead idea?

all the best,

drew



-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audio Stream

2020-01-07 Thread Robert Jeffares
We have a stream receiver in the rack which outputs audio to an input on 
the Rivendell box.


Using macro carts we 'take' the stream and when we want to return we 
have a macro cart that returns to local Rivendell programming.


This is well documented on the Rivendell wiki and works as expected.

There is a delay on the stream which can vary from a few seconds to as 
much as a minute depending on network delays.


There are various techniques to manage the cross.

It should be possible to link direct using RDCatch.

The macro cart option facilitates a crossover announcements


On 8/01/20 3:11 am, Travis House wrote:

Does anyone know how to schedule an internet stream in Rivendell?
--
Travis A. House
Senior Operations Manager/Chief Engineer
Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
Listen online @ sunny971fm.com 



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audio Stream

2020-01-07 Thread Lorne Tyndale
Hi,

I'm still unclear on what is going on.  To quote:

> > They say RD is turning the feed on and off now but they cannot find the
> > URL in RD.

Is this for a streaming "radio" station, on the internet with the
content being generated by Rivendell?  That is - Rivendell generating
audio for an internet stream fed to a URL with Rivendell turning its
internet stream feed on and off via a schedule?

*OR*

Rivendell is running on an over the air radio station and for some of
its content it grabs an Internet stream from a URL and then sends it to
the rest of the air chain?

These are 2 different things, and Rivendell can do either one.

Either way, there will probably either be a macro cart that is scheduled
in the log, or something scheduled in RDCatch

Lorne Tyndale



> 
> 
> I can think of several possibilities. Not sure I know what the "correct"
> rivendell way(s) might be.
> 
> What is the setup in the air studio? Is there a desk/mixer with pots on
> channels? Does this show happen when there is a DJ at  the board to do
> things or is this supposed to happen unattended?
> 
> I have never used rdcatch, but that is my first thought to look into. The
> next would be a macro cart, perhaps running an external bash script. It
> might also depend on if the airplay machine is running jack with rivendell
> or not.
> 
> What is the soundcard situation with the rdiarplay machine? Audioscience
> driver? Alsa driver? Jack?
> 
> 
> 
> On Tue, Jan 7, 2020 at 10:48 AM Travis House  wrote:
> 
> > They say RD is turning the feed on and off now but they cannot find the
> > URL in RD.
> >
> 
> So, do they need to change the URL to something new that they do know? Are
> they trying to find what the correct URL is that is stored in rivendell
> because they have no other way of finding it? Something else?
> 
> 
> 
> >
> > Ideas?
> >
> 
> Sorry this seems like so much. I have a feeling the solution might be
> simple for someone once the issue is pinned down.
> 
> Please keep this on the list rather than direct, other minds are likely to
> have better answers even though I currently am giving the attention.
> 
> all the best,
> 
> drew
> 
> >
> > On Tue, Jan 7, 2020 at 9:31 AM drew Roberts  wrote:
> >
> >> Travis,
> >>
> >> what does this mean?
> >>
> >> On Tue, Jan 7, 2020 at 9:11 AM Travis House 
> >> wrote:
> >>
> >>> Does anyone know how to schedule an internet stream in Rivendell?
> >>>
> >>
> >> Are you trying to originate an internet stream from your rivendell
> >> rdairplay on a schedule? Are you trying to put an existing internet into
> >> your airchain on a schedule? Something else?
> >>
> >> all the best,
> >>
> >> drew
> >>
> >> --
> >>> Travis A. House
> >>> Senior Operations Manager/Chief Engineer
> >>> Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
> >>> Listen online @ sunny971fm.com
> >>>
> >>>
> >>> ___
> >>> Rivendell-dev mailing list
> >>> Rivendell-dev@lists.rivendellaudio.org
> >>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> >>
> >>
> >>>
> >>
> >> --
> >> Enjoy the *Paradise Island Cam* playing
> >> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
> >>
> > --
> > Travis A. House
> > Senior Operations Manager/Chief Engineer
> > Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
> > Listen online @ sunny971fm.com
> >
> >
> >
> 
> -- 
> Enjoy the *Paradise Island Cam* playing
> *Bahamian Or Nuttin* - 
> https://www.paradiseislandcam.com/___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audio Stream

2020-01-07 Thread drew Roberts
I can think of several possibilities. Not sure I know what the "correct"
rivendell way(s) might be.

What is the setup in the air studio? Is there a desk/mixer with pots on
channels? Does this show happen when there is a DJ at  the board to do
things or is this supposed to happen unattended?

I have never used rdcatch, but that is my first thought to look into. The
next would be a macro cart, perhaps running an external bash script. It
might also depend on if the airplay machine is running jack with rivendell
or not.

What is the soundcard situation with the rdiarplay machine? Audioscience
driver? Alsa driver? Jack?



On Tue, Jan 7, 2020 at 10:48 AM Travis House  wrote:

> They say RD is turning the feed on and off now but they cannot find the
> URL in RD.
>

So, do they need to change the URL to something new that they do know? Are
they trying to find what the correct URL is that is stored in rivendell
because they have no other way of finding it? Something else?



>
> Ideas?
>

Sorry this seems like so much. I have a feeling the solution might be
simple for someone once the issue is pinned down.

Please keep this on the list rather than direct, other minds are likely to
have better answers even though I currently am giving the attention.

all the best,

drew

>
> On Tue, Jan 7, 2020 at 9:31 AM drew Roberts  wrote:
>
>> Travis,
>>
>> what does this mean?
>>
>> On Tue, Jan 7, 2020 at 9:11 AM Travis House 
>> wrote:
>>
>>> Does anyone know how to schedule an internet stream in Rivendell?
>>>
>>
>> Are you trying to originate an internet stream from your rivendell
>> rdairplay on a schedule? Are you trying to put an existing internet into
>> your airchain on a schedule? Something else?
>>
>> all the best,
>>
>> drew
>>
>> --
>>> Travis A. House
>>> Senior Operations Manager/Chief Engineer
>>> Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
>>> Listen online @ sunny971fm.com
>>>
>>>
>>> ___
>>> Rivendell-dev mailing list
>>> Rivendell-dev@lists.rivendellaudio.org
>>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>>
>>
>>>
>>
>> --
>> Enjoy the *Paradise Island Cam* playing
>> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
>>
> --
> Travis A. House
> Senior Operations Manager/Chief Engineer
> Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
> Listen online @ sunny971fm.com
>
>
>

-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audio Stream

2020-01-07 Thread drew Roberts
Travis,

what does this mean?

On Tue, Jan 7, 2020 at 9:11 AM Travis House  wrote:

> Does anyone know how to schedule an internet stream in Rivendell?
>

Are you trying to originate an internet stream from your rivendell
rdairplay on a schedule? Are you trying to put an existing internet into
your airchain on a schedule? Something else?

all the best,

drew

-- 
> Travis A. House
> Senior Operations Manager/Chief Engineer
> Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
> Listen online @ sunny971fm.com
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>


-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Audio Stream

2020-01-07 Thread Travis House
Does anyone know how to schedule an internet stream in Rivendell?
-- 
Travis A. House
Senior Operations Manager/Chief Engineer
Sunny 97.1 & 1580 | WDQN, Du Quoin, IL.
Listen online @ sunny971fm.com
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev