iwj145
iwj145

Reputation: 261

Cake Shell showing code instead of options

When i try to run the cake shell.. i receive a very weird message .. see below;

X-Powered-By: PHP/5.4.11
Content-type: text/html

################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) :  Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
#
# @copyright    Copyright 2005-2012, Cake Software Foundation, Inc.
# @link         http://cakephp.org CakePHP(tm) Project
# @package      app.Console
# @since        CakePHP(tm) v 2.0
# @license      MIT License (http://www.opensource.org/licenses/mit-license.php)
#
################################################################################
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")

while [ -h "$LIB" ]; do
        DIR=$(dirname -- "$LIB")
        SYM=$(readlink "$LIB")
        LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
done

LIB=$(dirname -- "$LIB")/
APP=$(dirname $(cd $(dirname $0) && pwd))

exec php -q "$LIB"cake.php -working "$APP" "$@"

exit;

Any Idea's how to fix this problem?

I am using php 5.4.11, and i haven't made any changes to the code made by cakephp..

Thanks

Upvotes: 0

Views: 448

Answers (1)

iwj145
iwj145

Reputation: 261

I was calling the method from cake.. not cake.php

Thanks to @noslone!

To get the shell to load you should write the following command

$  php cake.php (Then the appropriate shell name)

Upvotes: 1

Related Questions