#!/bin/sh root=/var/www/ read r r=$(echo "$r" | tr -d '\r') r=${r//\//_} r="$root$r" if [ -d "$r" ]; then r="$r/menu" fi if [ -r "$r" ]; then cat "$r" exit fi echo "3\"$r\" not found error.file error.host 0"