Results 1 to 2 of 2

Thread: Play me a song, Ubuntu.

  1. #1
    Join Date
    Nov 2008
    Location
    Toronto Canada
    Beans
    955
    Distro
    Ubuntu Mate 18.04 Bionic Beaver

    Play me a song, Ubuntu.

    My machine is a Ryzen 7, 16GB of RAM with an NVIDIA 750ti running Ubuntu MATE 18.04.
    What I'd like to do is have this system play a song, one specific song, once every day at a specific time of the day. It's an 8 MB .mp3 file.I typically listen to audio files with VLC or Audacious.

    How can I automate the playing of one song as a schedule? Thank you.

  2. #2
    Join Date
    Jun 2007
    Beans
    13,796

    Re: Play me a song, Ubuntu.

    The first few sections here should get you up to speed on cron: https://help.ubuntu.com/community/CronHowto

    As for the command, mpg123 is a simple program that should do what you want:
    Code:
    sudo apt-get install mpg123
    mpg123 <path to file>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •