KMNR / Webstream

A collection of tools and utilities for manipulating webstreams.
MIT License
1 stars 0 forks source link

webstream-crontab should add some human-readable comments next to each cronjob #5

Open DrDougPhD opened 7 years ago

DrDougPhD commented 7 years ago

Currently, webstream-crontab creates an output like this:

55 15 * * 1 root webstreamd-record /mnt/show_recordings/ZenandtheArtofBailingOut/ZenandtheArtofBailingOut-\%Y-\%m-\%d 130 http://localhost:8000/webstream-super.mp3
55 17 * * 1 root webstreamd-record /mnt/show_recordings/ShiningEchoes/ShiningEchoes-\%Y-\%m-\%d 130 http://localhost:8000/webstream-super.mp3

It's not very human-readable. It is desired to be able to know the day and time each cronjob will be executed, in a format like this:

# Monday, 4:00pm to 5:00pm: Get These Punks Out of My House
55 15 * * 1 root webstreamd-record /mnt/show_recordings/ZenandtheArtofBailingOut/ZenandtheArtofBailingOut-\%Y-\%m-\%d 130 http://localhost:8000/webstream-super.mp3
# Monday, 6:00pm to 7:00pm: Shining Echos
55 17 * * 1 root webstreamd-record /mnt/show_recordings/ShiningEchoes/ShiningEchoes-\%Y-\%m-\%d 130 http://localhost:8000/webstream-super.mp3