Personal tools

How to use wildcards in the logname, using the RML command LL

From Rivendell Wiki

Revision as of 15:55, 12 March 2018 by Higgles (Talk | contribs) (Created page with "'''Q:''' I am trying to use the RML command LL to load a log using the following line: <pre> LL 3 logname_%A! </pre> Can wildcards be used with this RML command? It doesn't...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Q: I am trying to use the RML command LL to load a log using the following line:

LL 3 logname_%A! 

Can wildcards be used with this RML command? It doesn't seem to work for me.

A: You can use wildcards by running an external script. Here is an example script:

#!/bin/sh 

NOWDATE=$(date +%d_%m_%Y)
rmlsend LL\ 1\ $NOWDATE\! 

exit 0 

You then run the script by running the following RML command in a macro, where path is the path to the script.

RN path/script.sh!

Make sure to make the script executable, otherwise it will not run. You can do that with the command:

chmod +x path/script.sh