dashboard now calling getcron

This commit is contained in:
Chester Bak 2024-07-23 08:59:17 +07:00
parent 225c66b8f8
commit e2bf69f8fe
2 changed files with 7 additions and 2 deletions

View File

@ -21,4 +21,4 @@ do
[[ -z $1 || $user = $1 ]] && printf "%-20s %s\n" "$dt" $tag
done |sort
}
crondisplay 2>&1 |tee ./web/log.txt
crondisplay 2>&1 |tee ./web/streams.txt

View File

@ -1,3 +1,8 @@
<?php
include_once 'header.php';
echo nl2br(file_get_contents( "log.txt" ));
$old_path = getcwd();
chdir('/var/www/');
$output = shell_exec('./getcron');
chdir($old_path);
echo nl2br(file_get_contents( "streams.txt" ));