Skip to content

Commit 80d2968

Browse files
author
Duke B
committed
fix cron (again)
1 parent d1ba59b commit 80d2968

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@
981981
'cron')
982982
header 'crontabs'
983983
subh '/etc/crontab'
984-
cat /etc/crontab | grep -vE '^\s*($|#)'
984+
cat /etc/crontab | grep -vE '^\s*($|#=)'
985985
echo
986986
subh '/etc/cron.d'
987987
grep . /etc/cron.d/*
@@ -1004,10 +1004,11 @@
10041004
for user in $(sudo ls $spool); do
10051005
echo "USER: $user"
10061006
# Print the crontab, filtering out comments and empty lines for clarity
1007-
crontab -u "$user" -l | grep -vE '^\s*($|#)'
1007+
crontab -u "$user" -l | grep -vE '^\s*($|#=)'
10081008
echo "----------------------------------------------------------"
10091009
done
10101010
fi
1011+
echo
10111012
get_key
10121013
;;
10131014
'change passwords')

0 commit comments

Comments
 (0)