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

Reply via email to