
First, let me show you the code that you will use and break it down a bit.
#!/bin/sh
while [ 1 = 1 ]
do
#eject CDROM
eject
#pull CDROM tray back in
eject -t
done
That was pretty cool, right?
For Windows users, this Vbscript will do the job just the same:
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
For those with Mac OS, you may use this:
#!/bin/sh
while true
do
sleep 3; drutil tray open
sleep 3; drutil tray close
done
I've seen this somewhere b4.
ReplyDeleteCan't remember where, but it's awesome!
It's a good example of how Linux amd Mac can do it with fewer lines of code .
ReplyDeleteVery nice one...
ReplyDeleteJust an optimization for the linux script: eject -T /dev/cdrom is the only thing needed, as it opens if closed and closes if open...
Much better, and no scripting needed:
ReplyDeletehttp://simplynoise.com
Out like a light!
All-right, another use for cdrom drives. Some people use 'em as cup holders. Who uses a those things to read CDs or DVDs anyway?
ReplyDeleteWill this work on my AuroraUX box?
ReplyDeleteEven geeks should not forget the evening breast milk: it contains substances to send the baby to sleep (not daytime milk)!
ReplyDeleteSleeping in Maxi Cosi Car Seat is a very bad idea. This can cause back problems in the long run.
ReplyDeleteshaker instrument, light "egg shaker" or heavier maracas, or rainstick work just fine. Try it, or record it and play in a loop.
ReplyDelete