Re: Program to check for presense of CD?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



patrick wrote:
I was needing to know if there's a CD in a drive so that I could
attempt to mount it if something was in there. The scsi utility I was
using on OpenBSD would query the drive at a low level, and would
report back if it found media in the drive. For now, I will just
attempt to run "mount /dev/cdrom" -- its exit value tells me if it was
successful in mounting a CD, and that seems to work just fine. The
automount service wasn't working for me, and I don't have the time to
fiddle with it to figure out why not.

You could build a cron job which runs every 5 seconds and attempts a mount.

:-)

More seriously, you should find out what is wrong.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux