[Tutor] Re: cd reader

Derrick 'dman' Hudson dman@dman.ddts.net
Sun Nov 24 18:03:01 2002


--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 23, 2002 at 04:10:27PM -0700, Chris Avery wrote:
| Hello all,
| I need to write a program that'll read the contents of a CD and write
| the filenames to a file for printing.
|=20
| Where should I start?

Is this a unix system or a windows system with cygwin?

Depending on how you want the output formatted, either
    $ find /cdrom -name \* -print > the_file_list.txt
or
    $ ls -R /cdrom > the_file_list.txt
will get the list and store it in a file.

At least on a real unix system (I'm not sure about cygwin) this
command will print the list.
    $ lp the_file_list.txt

If all you want is a hard-copy of the list, you can pipe the list
directly to lp and avoid an intermediary file on disk.

HTH,
-D

--=20
Commit to the Lord whatever you do,
and your plans will succeed.
        Proverbs 16:3
=20
http://dman.ddts.net/~dman/

--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj3hXdAACgkQO8l8XBKTpRTE0wCguNCuVm0VIJLQ4QpjUNK0DHs/
5Q8AoLr5S64XxxZ6e2XyNm3JBK5UA6eV
=kzqE
-----END PGP SIGNATURE-----

--d6Gm4EdcadzBjdND--