I think your question is: If you started "periodic daily" right now, which of the tasks would be run (or weekly or monthly or ...)? And perhaps even with what parameters?As trivial as it may sound, is there a way to list all periodic enabled tasks for a group (e.g., daily) without having to parse/grep and merge configuration files?
Or, for consistency's sake, aIf someone feels charitable, they could add argument parsing and a "-v" or "-n" option to periodic
-e option similar to service(8), i.e. periodic -e daily that shows a list of enabled daily periodic(8).set |sort > /tmp/$$.1
. /etc/defaults/periodic.conf
source_periodic_confs
set |sort > /tmp/$$.2
RES=$(comm -13 /tmp/$$.1 /tmp/$$.2)
for line in $RES
do
var=${line%=*}
how=${line##*=}
suf=${var##*_}
[ "$suf" != "enable" ] && continue
[ "$how" != "YES" -a "$how" != "yes" ] && continue
#echo "$var => $how"
grep -rl "case.*$var" /etc/periodic/
done
rm -f /tmp/$$.1 /tmp/$$.2
sh:set |sort > /tmp/$$.1 . /etc/defaults/periodic.conf source_periodic_confs set |sort > /tmp/$$.2 RES=$(comm -13 /tmp/$$.1 /tmp/$$.2) for line in $RES do var=${line%=*} how=${line##*=} suf=${var##*_} [ "$suf" != "enable" ] && continue [ "$how" != "YES" -a "$how" != "yes" ] && continue #echo "$var => $how" grep -rl "case.*$var" /etc/periodic/ done rm -f /tmp/$$.1 /tmp/$$.2
Similar to what /etc/defaults/rc.conf is for /etc/rc.conf, there's /etc/defaults/periodic.conf.
service -e
sysrc -a