diff --git a/getcron b/getcron index 1471414..8e2e06a 100755 --- a/getcron +++ b/getcron @@ -9,6 +9,8 @@ mapfile -t lines < <(crontab -l |grep -v '^#' |grep ' *\s/var/www/stream ') #echo "User: $1" #now=$(date '+%Y-%m-%d %H:%M') +#retrieve and display cron entries +crondisplay() { for line in "${lines[@]}" do #tag=${line##* } _=${tag#*.} dt="${_:0:10} ${_:11:2}:${_:13:2}" _=${_:16} user=${_%%[@:]*} @@ -18,3 +20,5 @@ do dt=$(printf "%02d:%02d %s %d" $h $m $(date -d 2022-$M-01 +%B) $d) [[ -z $1 || $user = $1 ]] && printf "%-20s %s\n" "$dt" $tag done |sort +} +crondisplay 2>&1 |tee ./web/log.txt \ No newline at end of file diff --git a/web/dashboard.php b/web/dashboard.php new file mode 100644 index 0000000..aa518fc --- /dev/null +++ b/web/dashboard.php @@ -0,0 +1,3 @@ + + +Stream Upload + + + +

User: '.$user.'

Dashboard

+
+ +
'); +?> \ No newline at end of file