Added class to handle running tasks in the background

This commit is contained in:
2010-04-03 22:57:58 +01:00
parent b0c6302538
commit df818037f2

View File

@@ -0,0 +1,17 @@
<?php
class HandBrakeCluster_BackgroundTask {
protected function __construct() {
}
public function run($command) {
$pipes = array();
$pid = proc_open($command . ' &', array(), $pipes);
proc_close($pid);
}
};
?>