Ubuntu tip: Automatically turn off streaming music at night

Mark Stosberg's picture
Ubuntu

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 Gutsy Gibbon 7.10, add these lines to "/etc/crontab". You can edit this file with "gksudo gedit /etc/crontab":

Note that "rhythmbox" and "vlc" are the names of the music players I use. Change as needed.


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

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

Have fun!