Re: How do I close the CD door?



Michael Black wrote:
ToddAndMargo (ToddAndMargo@xxxxxxxxxxxxxxxxxx) writes:
Michael Black wrote:
ToddAndMargo (ToddAndMargo@xxxxxxxxxxxxxxxxxx) writes:
Hi All,

I can spit my CD ROM out the drive with the

eject /dev/scd0

Now, how do I get it to go back in? (I see
no sign of an "inject" command and apropos
is silent.)

You gently press the door inwards, and after a certain point the
drive will notice and start the motor that will close the door
fully.

How hard can this be? You have to put the disk in the drive anyway,
so pushing it (or even just pressing the button on the drive) just
after you put the disk in there can't be that difficult.
:-) :-) :-)

Now how do I "gently press the door inwards" from a bash script?

But how do you get the disk out of the drive by a script?

Now, I once put a CDROM drive in a computer that lay horizotally,
so every time I opened the drive door the CDROM would fall out. But
even with that "automated" feature, I still had to put the next disk
in.

If the whole process could be automated, then I could see the point of
a "close the door" command, and of the eject command. But since the
user has to be there next to the computer to take the old disk out
and put the new one in, there seems little point to automating it
all.

But like I said, read the man page for eject and you will find
your answer.

Michael


eject -t /dev/scd0

Right under my nose. I was searching for the keyword "inject"
instead of "close". I was also looking in the "ALSO SEE"
section for a separate command.

Thank you!
-T

.