You are here

public function flvtool2::run_command in Video 7

Same name and namespace in other branches
  1. 6.4 metadata/flvtool2.inc \flvtool2::run_command()
1 call to flvtool2::run_command()
flvtool2::process in metadata/flvtool2.inc

File

metadata/flvtool2.inc, line 46

Class

flvtool2

Code

public function run_command($options) {
  $command = $this->nice . ' ' . $this->params['cmd_path'] . ' ' . $options . '  2>&1';
  watchdog('video_metadata', 'Executing command: ' . $command, array(), WATCHDOG_DEBUG);
  ob_start();
  passthru($command, $command_return);
  $output = ob_get_contents();
  ob_end_clean();
  return $output;
}