Change version output to work with -v command line argument (#12)
Pull Request #70 on MMDVMHost To be honest, thinking about it, I don't think you need the 2>&1 now as I coded the version output to be printed to STDERR - one for you to test ;-)
This commit is contained in:
parent
749d3cb5e7
commit
4b0e7027bf
1 changed files with 3 additions and 3 deletions
|
@ -3,8 +3,8 @@
|
||||||
function getMMDVMHostVersion() {
|
function getMMDVMHostVersion() {
|
||||||
// returns creation-time of MMDVMHost as version-number
|
// returns creation-time of MMDVMHost as version-number
|
||||||
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
||||||
exec($filename." 2>&1", $output);
|
exec($filename." -v 2>&1", $output);
|
||||||
return substr($output[1],10,8)." (compiled ".getMMDVMHostFileVersion().")";
|
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMMDVMHostFileVersion() {
|
function getMMDVMHostFileVersion() {
|
||||||
|
@ -400,4 +400,4 @@ function getActualReflector($logLines, $mode) {
|
||||||
$mmdvmconfigs = getMMDVMConfig();
|
$mmdvmconfigs = getMMDVMConfig();
|
||||||
$logLines = getLog();
|
$logLines = getLog();
|
||||||
$lastHeard = getLastHeard($logLines);
|
$lastHeard = getLastHeard($logLines);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue