we written shell script sending email. cronjob fails , logged following error in logfile.txt on server.which nothing code of /home/user/public_html/app/console/cake. wrongs?
logfile.txt
x-powered-by: php/5.4.36 content-type: text/html # canonicalize following every symlink of given name recursively canonicalize() { name="$1" if [ -f "$name" ] dir=$(dirname -- "$name") name=$(cd -p "$dir" > /dev/null && pwd -p)/$(basename -- "$name") fi while [ -h "$name" ]; dir=$(dirname -- "$name") sym=$(readlink "$name") name=$(cd "$dir" > /dev/null && cd $(dirname -- "$sym") > /dev/null && pwd)/$(basename -- "$sym") done echo "$name" } console=$(dirname -- "$(canonicalize "$0")") app=`pwd` exec php -q "$console"/cake.php -working "$app" "$@" exit
Comments
Post a Comment