Robert,

thanks for the reply.

On Wed, Jan 8, 2020 at 1:39 AM Robert Jeffares <[email protected]>
wrote:

> 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.
>

These sorts of permissions were the problem.  In keeping with some thoughts
expressed on list yesterday, I solved things this time by making
/home/rdanon and putting the script to be run in there. I gave the
necessary permission to that directory.

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

Yup, I have been using cron just fine for years as well. It is just that
something that came by me on list recently got me thinking to have as much
as possible of a rivendell setup be transferred via a simple rivendell
database save and restore...

> HNY
>
> Robert
>

all the best,

drew


> 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 
> [email protected]http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> 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
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to