Re: [RDD] Help RN just won't work

2020-10-24 Thread David Klann
n 10/24/20 11:44 AM, Fred Gleason wrote:
> On Oct 24, 2020, at 12:05, Tim Camp  > wrote:
> 
>> RMLSend touch does indeed work, file is created.
>> our scripts do not
>> another simple command such as RN echo "something" > file! does not.
> 
> Likely it's the STDOUT redirection that’s the problem. Those redirection 
> operators (‘<‘, ‘>’, ‘|’, etc) are part of bash(1), not echo(1).
> 
> Try something like ‘RN sh -c echo something > file!’ (You may have to 
> escape the strings following the echo; I don’t have Rivendell loaded up 
> at the moment to test here).

Knowing a bit about shell quoting, I suggest the following if Fred's 
suggestion above does not work for you Tim:

 RN /bin/sh -c "echo something > /tmp/your-filename-here"

My understanding of the "-c" option to most shells (from reading `man 
bash`, etc.) is that they expect a complete command as a single, quoted 
argument, especially if you want the invoking shell (/bin/sh in this 
case) to perform the redirection.

Hoping your mystery is getting closer to being solved!

   ~David

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


Re: [RDD] Help RN just won't work

2020-10-24 Thread Fred Gleason
On Oct 24, 2020, at 12:05, Tim Camp  wrote:

> RMLSend touch does indeed work, file is created.
> our scripts do not
> another simple command such as RN echo "something" > file! does not.

Likely it's the STDOUT redirection that’s the problem. Those redirection 
operators (‘<‘, ‘>’, ‘|’, etc) are part of bash(1), not echo(1).

Try something like ‘RN sh -c echo something > file!’ (You may have to escape 
the strings following the echo; I don’t have Rivendell loaded up at the moment 
to test here).

Cheers!


|-|
| Frederick F. Gleason, Jr. | Chief Developer |
|   | Paravel Systems |
|-|
| A room without books is like a body without a soul. |
| |
| -- Cicero   |
|-|___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Help RN just won't work

2020-10-24 Thread Tim Camp
Greetings Fred,
Thanks for your input and time.

RMLSend touch does indeed work, file is created.
our scripts do not
another simple command such as RN echo "something" > file! does not.

So where would you suggest going from here?
As here works.

Tim Camp
WZEW-FM


On Sat, Oct 24, 2020 at 8:57 AM Fred Gleason 
wrote:

> Ok, let’s try a fully worked-out example of a very ‘minimalist’ example,
> and see if we can scale up from there.
>
> The default ‘/etc/rd.conf’ shipped with Rivendell 3.4.1 has an
> ‘[Identity]’ section that looks like this:
>
> *** snip snip ***
> [Identity]
> AudioOwner=rivendell
> AudioGroup=rivendell
>
> PypadOwner=pypad
> PypadGroup=pypad
>
> RnRmlOwner=rivendell
> RnRmlGroup=rivendell
> *** snip snip ***
>
> That’s designed to replicate a 2.x setup (Principle of Least
> Astonishment), but for this exercise let’s change the user for RN so it’s
> same one that’s running the base Rivendell modules:
>
> *** snip snip ***
> [Identity]
> AudioOwner=rivendell
> AudioGroup=rivendell
>
> PypadOwner=pypad
> PypadGroup=pypad
>
> RnRmlOwner=rd
> RnRmlGroup=rd
> *** snip snip ***
>
> We’ve changed ‘rd.conf’, so restart the ‘rivendell’ service to pick up the
> changes. As ‘root’:
>
> systemctl restart rivendell
>
> Now, start up a ‘Terminal’, and do:
>
> ls -l /home/rd/here
>
> You should get: 'ls: cannot access /home/rd/here: No such file or
> directory’.
>
> Now, fire up ‘RMLSend’, from the Applications->Rivendell->Utilities menu.
> In the ‘Sent To:’ field enter ‘localhost’, and in the ‘Command:’ field
> enter ‘RN touch /home/rd/here!’. Touch the ‘Send Command’ button.
>
> Now, go back to the terminal and repeat:
>
> ls -l /home/rd/here
>
> Now, you should get back something like: '-rw-r--r--. 1 rd rd 0 Oct 24
> 09:26 /home/rd/here’.
>
> You’ve just created an empty file called ‘here’, in the ‘/home/rd’
> directory. A very basic starting point, but it will let us establish that
> the fundamental system in Rivendell is working. Once we have that, we can
> start working to determine why your specific scripts won’t run.
>
> Cheers!
>
>
> |-|
> | Frederick F. Gleason, Jr. | Chief Developer |
> |   | Paravel Systems |
> |-|
> | A room without books is like a body without a soul. |
> | |
> | -- Cicero   |
> |-|
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>


-- 
Tim Camp
Director of Operations/Programming
Dot Com Plus L.L.C.
dba WZEW-FM WNSP-FM
Mobile, Al.
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Help RN just won't work

2020-10-24 Thread Brian McGlynn
Hi Tim,

What user are running Rivendell as?  If you run as non-root, (as we do),
you'll need to update the code.  The next version of Rivendeil will have
the updated code.

https://github.com/ElvishArtisan/rivendell/pull/604


Brian


*--*
*Brian P. McGlynn*

ᐧ

On Fri, Oct 23, 2020 at 2:49 PM Tim Camp  wrote:

> Greetings,
>
> New install on CentOS 7 of Rivendell 3.4.1
>
> This is day number two of trying every possible thing I can think of as to
> why this doesn't work.
>
> Things I have tried.
>
> 1. various settings for RNRmlOwner
> rd rivendell
> root root
> rd users
> rd rd
>
> 2. paths
> RN with full path
> RN without full path
> changing $PATH
>
> 3. Running env
> running the scripts with sh
> running in bash
>
> Am I missing something?
>
> These scripts contain commands to control our consoles
> which turn on channels, route audio, mute channels, etc
> The scripts send data via udp to the console using /dev/udp
> I have not had a problem with then in version 2.*
> The scripts run fine in terminal as any user.
>
> Thanks for any thoughts or help on this.
>
> Tim Camp
> WZEW-FM
> Mobile, Al.
>
>
>
> ___
> 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] Help RN just won't work

2020-10-24 Thread Fred Gleason
Ok, let’s try a fully worked-out example of a very ‘minimalist’ example, and 
see if we can scale up from there.

The default ‘/etc/rd.conf’ shipped with Rivendell 3.4.1 has an ‘[Identity]’ 
section that looks like this:

*** snip snip ***
[Identity]
AudioOwner=rivendell
AudioGroup=rivendell

PypadOwner=pypad
PypadGroup=pypad

RnRmlOwner=rivendell
RnRmlGroup=rivendell
*** snip snip ***

That’s designed to replicate a 2.x setup (Principle of Least Astonishment), but 
for this exercise let’s change the user for RN so it’s same one that’s running 
the base Rivendell modules:

*** snip snip ***
[Identity]
AudioOwner=rivendell
AudioGroup=rivendell

PypadOwner=pypad
PypadGroup=pypad

RnRmlOwner=rd
RnRmlGroup=rd
*** snip snip ***

We’ve changed ‘rd.conf’, so restart the ‘rivendell’ service to pick up the 
changes. As ‘root’:

systemctl restart rivendell

Now, start up a ‘Terminal’, and do:

ls -l /home/rd/here

You should get: 'ls: cannot access /home/rd/here: No such file or directory’.

Now, fire up ‘RMLSend’, from the Applications->Rivendell->Utilities menu. In 
the ‘Sent To:’ field enter ‘localhost’, and in the ‘Command:’ field enter ‘RN 
touch /home/rd/here!’. Touch the ‘Send Command’ button.

Now, go back to the terminal and repeat:

ls -l /home/rd/here

Now, you should get back something like: '-rw-r--r--. 1 rd rd 0 Oct 24 09:26 
/home/rd/here’. 

You’ve just created an empty file called ‘here’, in the ‘/home/rd’ directory. A 
very basic starting point, but it will let us establish that the fundamental 
system in Rivendell is working. Once we have that, we can start working to 
determine why your specific scripts won’t run.

Cheers!


|-|
| Frederick F. Gleason, Jr. | Chief Developer |
|   | Paravel Systems |
|-|
| A room without books is like a body without a soul. |
| |
| -- Cicero   |
|-|


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