Personal tools

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

From Rivendell Wiki

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