Samstag, 13. August 2016

Why you need a script if you buy a new car nowadays

Read Audio-CD (bash, Gnome Virtual File System, abcde)

My father in law bought a new car. Because the vendor doesn't ship an audio CD drive anymore but an usb interface he asked us to encode "some" of his favorite CDs so he can listen to them. Encoding one CD took some time and I had to start the encoding process manually. So I wrote a simple (really simple, no command line options, no interrupt criteria and so one) to automate this process:

  1. open CD drive
  2. start script
  3. put in audio CD
  4. close CD drive
  5. wait until CD drive opens again
  6. continue with the third step
As soon as all CDs are encoded, hit ^C (CTRL+C) and close the CD tray.

Developed and tested on

  • Debian GNU/Linux 8.5 (jessie)
  • Gnome 3.14
  • bash 4.3.30
  • abcde 2.6


Known limitations are:

  • Works only in Gnome
  • Doesn't work when screen is locked or inactive

Where to get this script?