Greetings Lee!

I modified a script that Wayne Merricks posted a while ago to do
something similar to what I believe you're seeking.

It's a Z-Shell script that is meant to be run from a job scheduling
service such as cron or RDCatch, but can certainly be run from an
interactive shell.

My adaptation of Wayne's script loads "tomorrow's" log, which presumes
the date in the log name matching the pattern "servicename_%Y%m%d" (e.g.
Production_20170101), then performs an RML "MN" (Make Next) on the first
log line. The script is meant to be run on the workstation that is
running the "production" RDAirPlay. It also loads a log into AuxLog1 if
an "Aux Log" is named on the command line.

You can find the script at
https://raw.githubusercontent.com/opensourceradio/ram/master/usr/local/bin/pmw-day-start

You'll need the companion script "zsh-functions" in the same directory
on GitHub
(https://raw.githubusercontent.com/opensourceradio/ram/master/usr/local/bin/zsh-functions).

Or just clone or fork httsp://github.com/opensourceradio/ram

Hope this helps!

  ~David Klann


On 12/26/2016 02:53 AM, Lee Baker wrote:
> Happy holidays to all, hope it has been nice and enjoyable/
> 
> This may be an odd question, but I am wondering if there is a way
> through the wonders of scripting (perhaps someone has already achieved
> this) to run a macro on one machine that can load the current days log
> and make next the next event at the current time.
> 
> For example, a macro runs before the top of hour (assumably calling a
> .sh or .pl script) on riv1, loading the current days log on riv2, then
> makes next the first event of the current next hour.
> 
> Then, at the end of the hour, another macro runs, placing riv 2 in to
> auto and starts riv2 playing and will place riv1 in to live assist.
> 
> The same could also be quite handy for a reboot of a system, when rd
> starts, it loads the current days log and skips to event at the most
> current time (a log that does not have hard timed starts) and auto plays.
> 
> Cheers,
> Lee
> 
> 
> 
> 
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to