Ubuntu – Automatically close application after custom time

automation

Is there a way to automatically close a certain application after custom time?

Update: i.e. stop the Audioplayer after a certain time.

Best Answer

  • Install gnome-schedule from the Ubuntu Software Center, load the program from Applications > System Tools. Use it to add an entry for the time you want the program to be closed like so:

    alt text

    This will kill all instances of firefox at a certain date/time, you can also have reoccurring events that kill off certain programs at certain times, for instance to encourage kids to not browse the internet or for killing certain games.

    It is possible to do this kind of thing from the commandline too, but you need to know how to use crontab -l and how to write cron lines.