Subj : Re: How to detect cdrom tray status (open or closed) To : comp.os.linux From : Sybren Stuvel Date : Wed Oct 06 2004 04:55 pm Minderbinder enlightened us with: > Try looking for the source code of the "eject" utility I will. > which already does what you describe. Well, if I tell it to eject while the tray is open, it first closes the tray and then re-opens it. This led me to think it didn't detect the status of the tray. But as said above, I'll look into the code. Thanks! Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? .