Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Can we read data in a cd-rom through perl over a network ? I tried to read it but it failed but when i tried to read other fixed hard drives than it succeded. Anyone knows y?

Replies are listed 'Best First'.
Re: CD-rom read
by Anonymous Monk on Aug 30, 2012 at 07:37 UTC

    Can we read data in a cd-rom through perl over a network ?

    Sure, if you can use "dir" on it from a shell, you can use open/opendir. If "dir" won't work, you'll need something that speaks the same protocol.

    I tried to read it but it failed but when i tried to read other fixed hard drives than it succeded. Anyone knows y?

    What error message did you get? It usually explains why.

      Dir didnt work over the network but it worked fine on my local cd rom drive.

        Maybe the remote CD ROM isn't shared on the network. Are you able to access it over the network using your fingers and keyboard?


        Dave

Re: CD-rom read
by locked_user sundialsvc4 (Abbot) on Aug 30, 2012 at 13:04 UTC

    It will be a permission issue.   Many computers mount a CD-ROM under the user-name of the mounting user, and stipulate that the device may only be used by them.   It does not have to be so.   Access Control Lists (ACLs) are the most common technique used these days.

    You may wish to consider transcribing the information onto a hard drive, since CD-ROMs are slow.