I have copied this bunch of code from one funny video clip about How does a programmer swing his baby. The code is following:
#!/bin/bash
while [ l=l ]
do
#eject cdrom
eject
#pull cdrom track back in
eject -t
done
But it doesn't work for me, when I run it with the command sh baby_rocker.sh
it performs the code and outputs the following message eject: unable to find or open device for: "cdrom"
even though I have CD-ROM device on my computer.
How can I make it to work?