md.dcgi 266 B

1234567891011121314151617
  1. #!/bin/sh
  2. ## Script to gen a list of files, and give them right type
  3. ROOT="/var/gopher"
  4. DIR="${ROOT}${2}"
  5. echo "[i|${2}:|Err||]"
  6. for RESULT in $(/bin/ls -r1 ${DIR})
  7. do
  8. DESC="${RESULT}"
  9. PATH="/blog/${RESULT}"
  10. echo "[0|${DESC}|${PATH}|demu.red|70]"
  11. done
  12. exit 0