Jessee, if you don't get this sorted by tomorrow, look for me in IRC and I will see if I can help.
all the best, drew On Sun, Feb 7, 2021 at 3:57 PM Jesse Jones <jessejones2...@gmail.com> wrote: > The Goal is to run bash scripts from inside macrocarts using RDCatch to do > such things as run a backup of the database and do rsync between the "On > Air" machine and a "warm standby" plus other "odd jobs". > The script(s) run from terminal using /bin/sh script.sh but not in the > macro "RN script.sh! > > I tried to "edit the RML user" in /etc/rd.conf to both "rd" and "rduser" > but "rd" did not work and "rduser" asks for a password immediately after I > change the entry (whether I edit as root or as sudo rd). So I am missing > something here. > > I have tried to chown the script but users "rivendell" and "rduser" won't > chown. > > How do I get the bash script to run from inside a macro cart? > > ---------------------------- > At the top of the RDAirPlay is: > RDAirPlay v3.5.0 -Host:test User:rduser Log:TEST Service:OnAir > > In /etc/rd.conf I had (before edit attempts): > [Identity] > ; These entries are used to define the system user and group that will > ; own the audio files. > AudioOwner=rivendell > AudioGroup=rivendell > > ; These entries are used to define the system user and group that commands > ; executed by the 'Run Shell Command' ['RN'] RML will run under. > RnRmlOwner=rivendell > RnRmlGroup=rivendell > > [mySQL] > ; The connection parameters for the MySQL server. > Hostname=localhost > Loginname=rduser > Password=******* > Database=Rivendell > Driver=QMYSQL3 > > and the script I want to work from inside the macro is in /bin/ (ls -l): > -rwxr-xr-x. 1 rd rivendell 161 Feb 6 20:51 databasescript.sh > > It was originally: > -rwxr-xr-x. 1 root root 161 Feb 6 20:51 databasescript.sh > --------------------------- > > On Sun, Feb 7, 2021 at 5:25 AM Emisora Regional <ra...@emisoraregional.com> > wrote: > >> Hi. Edit the /etc/rc.conf file and make sure that in the line referring >> to RML ... the user is the one you are using to run the macro. Regards >> >> Octavio Halle >> Emisora Regional >> >> El 7 feb. 2021 1:21 a.m., Jesse Jones <jessejones2...@gmail.com> >> escribió: >> >> I am sure I am making this harder than it has to be - but I am having >> trouble running a bash SCRIPT from inside a macro cart. I had hoped to use >> RDCatch to run the script. >> The script is executable via CLI/terminal using the line /bin/sh >> script.sh so I have the permissions ok and all that. But when I run the >> macro RN script.sh! it fails. The full path to the script is >> /bin/script.sh. >> I read all you folk running these scripts but I can't seem to get my >> Rivendell 3.5 (appliance on CentOS 7) to follow suit. By the way - I have >> found that percussive maintenance and cussive recitations haven't worked >> either. >> Would someone please enlighten me on the secret to running bash from >> the macro cart? >> >> >> _______________________________________________ > 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