user606521
user606521

Reputation: 15434

how I can return some data from cake shell?

I wrote some cake php shell and I need some data as a result of executing it - let's say some data in json - is it possible to return some data from cake shell command? Or maybe there is some workaround? The problem is that this shell will be executed by some external script (not cake) and my shell should return some data...

Upvotes: 0

Views: 190

Answers (2)

ADmad
ADmad

Reputation: 8100

Use Shell::out() function to send output to stdout.

Upvotes: 3

Greg Motyl
Greg Motyl

Reputation: 2545

from cake shell you can simply run GET request with parameters to some address where you can listen for it...

Upvotes: 0

Related Questions