Output command in logs

This commit is contained in:
Timendum 2018-06-11 15:38:18 +02:00
parent 8e7c655c93
commit 93e2649354

View file

@ -279,13 +279,13 @@ class Downloader
}
if($this->config["log"])
{
$cmd = "{ echo Command: ".escapeshellarg($cmd)."; ".$cmd." }"
$cmd .= " > ".$this->log_path."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").txt";
}
else
{
$cmd .= " > /dev/null ";
}
$cmd .= " & echo $!";
shell_exec($cmd);
}