If you are not a geek, let me explain the logic of this very simple program.
The program will first auto-eject the CD-ROM drive of your computer and then it will close that open tray. This open-close loop will run forever unless you terminate the program manually.
while [1 = 1] do #eject cdrom eject #pull cdrom tray back in eject -t done
Now the interesting part -- using just these four lines of code, a geek turned his old Linux* computer into a baby rocker.
He attached a string between the tray of the CD-ROM drive and the baby seat and as the tray would open and close repeatedly, the smooth movements were enough to put his baby to sleep. Awesome.
[*] you are not on on Linux, you can build a similar Baby rocker program for Windows using Autohotkey software.
Find this article at: http://www.labnol.org/software/old-linux-computer-for-baby/10420/

Reader Comments
May I respectfully suggest a slight change to your title:
Use an Old Linux Computer to Lull your Baby to Sleep.
It avoids any unfortunate connotations.
Written by Gidseo on 10.07.09
Thats interesting :)
Written by Riyaz on 10.07.09
What is the relevance of this post?
Written by Manish on 10.07.09
How My God! You are a Real Genius! Awesome!
Written by Chethan on 10.07.09
@Manish
Its how man creatively uses his resources in different ways. In this case technology has now given you a problem to something many parents lose their sleep over.
Written by Satish S on 10.07.09
And undoubtedly shorten the life of that drive’s motor to mere weeks.
Written by ttrygve on 10.07.09
I hope the drive does not comes apart :)
Written by Sham on 10.07.09
This reminds me of a colleague who used a rotating fan and a length of string to keep his mouse moving when away from his desk, thus preventing him from getting logged out of his remote windows terminal.
Simple solution, if power-hungry!
Written by John on 10.08.09
This is awesome! :)
Written by Shivani on 10.08.09
My $0.02.
We can do this with windows system also. Use the below Vbscript.
{{{
Set oWMP = CreateObject(”WMPlayer.OCX.7″ )
Set ArrCDROM = oWMP.cdromCollection
while (1)
wscript.sleep 3000
ArrCDROM.Item(0).Eject
wscript.sleep 3000
ArrCDROM.Item(0).Eject
wend
}}}
link
Thanks,
Sitaram
Written by Sitaram on 10.08.09
You can also use an external **d-rom, with a small laptop and it will possible consume much less energy, and probably less noise (fan).
Written by John on 10.08.09
The unix code seems much simpler than the vbscript.
Written by joe on 10.08.09
this is definitely not GREEN. i think you can rig a reciprocating motor which consumes far fewer watts to do it.
Written by ramesh on 10.08.09
and……. here’s one for the mac!
#!/bin/sh
while true
do
sleep 3; drutil tray open
sleep 3; drutil tray close
done
have fun!
Written by Michael on 10.08.09
This is a very creative way of making the baby to sleep.
Written by Dinesh on 10.09.09
I enjoyed the fact that “Ads by Google” surrounding this post featured a Cray XT5m.
Written by Ross on 10.10.09