add header and dashboard
This commit is contained in:
1 parent
c19fae358a
commit
ccd57f7fdf
3 files changed
+36
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user