How to make the CD drive unable to close

Today I have won 1 euro. I challenged my friend to close the CD drive and he didn't even know he was cheating with the help of bash.

The script is very simple. It simply consists of putting the command ejector within an infinite loop. All you have to do is copy the following code in the terminal and press enter.

while [1 = 1] do eject done
My friend narrowly and the unit loads when trying to force it to stay closed, so be careful if you want to do the test

Another curious use of the CD drive

If you are a lazy parent, this technique can be very helpful.

El bash script sleep babies:

while [1 = 1] do #eject cdrom eject #pull cdrom tray back in eject -t done

Source: labnol.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   ds23ytube said

    Ummmm the infinite loop has many utilities, like opening a program many times and fucking a friend. hehehe

    1.    let's use linux said

      That's right ... 🙂

  2.   vidagnu said

    jajjaaj great !!

  3.   frameworks said

    haha great

  4.   eliotime3000 said

    EpicWin!

    The truth is that this troll I never thought could work that way.

    Anyway, how will you do to get rid of the script?

    1.    bxo said

      Ctrl + C, I don't know if you mean that xD

      1.    let's use linux said

        Ctrl + Z can also work.
        hug, pablo.

  5.   Joaquin said

    And to a remote pc or our LAN? XD

  6.   Cristianhcd said

    cool: fsjal

    now I'm missing the baby 😀

  7.   Wada said

    Hahahaha fun, I've seen that video a long time, I leave the "one line" version
    $ while true; do eject; done
    Even shorter ...
    $ while :; do eject; done
    I hope the code comes out hahaha

    1.    let's use linux said

      Good! Thanks for optimizing it!

  8.   elav said

    Hahahaha .. that's good.

  9.   Miguel said

    … And then they ask how did my recorder break?….

  10.   Mario Guillermo Zavala Silva said

    I find the file a bit ingenious ... excellent !!!!

    My respects !!! CHEERS !!!

  11.   Yeretic said

    alias eject = 'eject -t'

    Headache guaranteed for a long time…. Hehehehehe