made additional changes
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user