16 lines
554 B
PHP
16 lines
554 B
PHP
<?php
|
|
header("Content-Type: text/plain");
|
|
// Find latest pw run log
|
|
$logs = glob("/tmp/ambre-pw-run-*.log");
|
|
usort($logs, function($a,$b){return filemtime($b)-filemtime($a);});
|
|
if (empty($logs)) { echo "NO LOG FILES\n"; exit; }
|
|
$latest = $logs[0];
|
|
echo "=== $latest ===\n";
|
|
echo "Size: " . filesize($latest) . "B\n\n";
|
|
echo @file_get_contents($latest);
|
|
echo "\n\n=== Test dir listing ===\n";
|
|
$base = "/var/www/html/api/ambre-pw-tests";
|
|
echo @shell_exec("ls -la $base/ 2>&1");
|
|
echo "\n=== Output dir ===\n";
|
|
echo @shell_exec("ls -la $base/output/ 2>&1");
|