Ubuntu tip: Automatically turn off streaming music at night

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!

Leave a comment

Recent Entries

  • generating HTTP headers: sorted or unsorted?

    Recently I've been reviewing how various Perl frameworks and modules generate HTTP headers. After reviewing several approaches, it's clear that there are two major...

  • The cost of saving sent e-mail

    I don't tap my own phone. I don't xerox postcards before I mail them back from vacation. I don't take a voice recorder when...

  • Modifying PDFs so they open full screen

    The [PDF spec](http://www.adobe.com/devnet/pdf/pdf_reference_archive.html) includes an option to cause PDFs to open full screen when users open them. I'm a fan of the feature because...

  • Stewardship and Sustainability of our online lives

    A few weeks ago I had my laptop stolen. Earlier that morning I had been reflecting and writing on the laptop about the intersection...

  • A vision for CGI.pm and CGI::Simple

    I've spent a lot time recently [triaging bugs for CGI.pm](http://mark.stosberg.com/blog/2009/08/almost-100-cgipm-bugs-closed-help-with-the-50-still-open.html). I've enjoyed the process, and respect CGI.pm as a widely used Perl module. I'm...

Close