I've been known to accidentally leave a stream of music running all night when I'm not there to listen to it anymore. That wastes bandwidth and energy.

Here's a quick tip to prevent from happening, by causing any music playing to be turned off at 7:00 pm each night.

On Ubuntu Linux, add these lines to /etc/crontab. You can edit this file with gksudo gedit /etc/crontab:

Note that "rhythmbox" is the name of the music players I use. Change as needed.

# stop streams from playing all night.
0 19 * * Mon-Fri killall --quiet rhythmbox

If you need to adjust the time, the first two columns of numbers are the minutes and hour columns.

Have fun!

Using rsnapshot with systemd

Published on August 26, 2016