made additional changes

This commit is contained in:
2023-05-20 20:22:23 +00:00
parent 9810c9caf6
commit 6628b4288a
16 changed files with 499 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
#!/usr/bin/bash
total_count=0
declare -a crontab_dirs=(
/etc/cron.d
@@ -7,6 +9,7 @@ declare -a crontab_dirs=(
/var/spool/cron
)
echo "Crontab Statistics: <br>"
for dir in ${crontab_dirs[@]}; do
count=0;
for file in $dir/*; do
@@ -16,4 +19,4 @@ for dir in ${crontab_dirs[@]}; do
total_count=$(( $count + $total_count ))
done
echo "Total: $total_count"
echo "Total: $total_count"