Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

provision_shell_exec (  ) 

Wrapper around drush_shell_exec to provide sprintf functionality with some more safety.

: fix this so we can get error codes and the return values. drush_shell_exec is too limited

Definition at line 187 of file provision.inc.

  $args = func_get_args();
  //do not change the command itself, just the parameters.
  for ($x = 1; $x < sizeof($args); $x++) {
    $args[$x] = escapeshellcmd($args[$x]);
  $command = call_user_func_array('sprintf', $args);
  return drush_shell_exec($command);

Generated by  Doxygen 1.6.0   Back to index