mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2024-11-10 08:52:36 +08:00
Output command in logs
This commit is contained in:
parent
8e7c655c93
commit
93e2649354
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue