Thanks evilmrhenry - thats the command I was looking for. So, your script would look like this:
Code:
#!/bin/bash
# cdinfo - output the name of the volume in my cd drive, display all the files and the date it was
# created
# Usage: type "cdinfo" while in the directory of the mounted CD
echo "Volume name: "
volname
echo "Files: "
ls -aRl
#EOF
Put that into a text file, and put the text file in /usr/bin
Then, do this (as root):
Code:
chmod 755 /usr/bin/cdinfo
Then, mount a CD, cd to the direcory, and issue this command:
Enjoy