cconsole Extension contains component for working with linux, windows shell, yii shell

  1. Requirements
  2. Usage
  3. Resources

Requirements

Yii 1.1.8 or above

Usage

You can attach CConsole component in the application configuration file (components section) or use as separate object.

Run yii console command:

$console = new CConsole();
$async = true;
$console->runCommand('newsdelivery', array('param1', 'param2'), $async);

Run *nix shell command:

$console = new CConsole();
$async = false;
$console->exec('ping 8.8.8.8', $async);

Run *nix shell command with forwarded input/output:

$console = new CConsole();
$redirectOutput = true;
$console->pasthru('sudo aptitude install git', $redirectOutput);

Resources

3 0
9 followers
1 168 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Console
Developed by: djvibegga
Created on: Apr 5, 2012
Last updated: 10 years ago

Downloads

show all

Related Extensions