Subj : Re: How to detect cdrom tray status (open or closed) To : comp.os.linux From : Minderbinder Date : Wed Oct 06 2004 02:33 pm On Wed, 06 Oct 2004 14:31:53 +0200, sybren wrote: > I'm looking for a way to determine the status of my cdrom tray. The goal: > to write a program that closes the tray when it's opened, and opens it if > it's closed. Try looking for the source code of the "eject" utility, which already does what you describe. Minderbinder. .