|
Interesting that this does not detect the file:
[22:54 r730-01 dvl ~] % sudo ls -l /jails/mydev/var/cron/tabs/dan
-rw------- 1 root wheel 519 Mar 3 2023 /jails/mydev/var/cron/tabs/dan
[22:54 r730-01 dvl ~] % sudo ls -l /jails*/var/cron/tabs/dan
zsh: no matches found: /jails*/var/cron/tabs/dan
However, this works:
[22:55 r730-01 dvl ~] % sudo find /jails/*/var/cron/tabs -name dan
/jails/mydev/var/cron/tabs/dan
/jails/webserver/var/cron/tabs/dan
|
|
Got one fixed:
[22:57 webserver dvl ~] % sudo cat /var/cron/tabs/dan
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.RBZgMmr7tK installed on Sat Feb 4 23:29:44 2023)
# (Cron version -- $FreeBSD$)
#
# $Id: crontab.sample,v 1.7.2.9 2004/01/12 19:02:50 dan Exp $
#
# Copyright (c) 2001-2003 DVL Software
#
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to `dan', no matter whose crontab this is
MAILTO=dan
YYYY_MM_DD=`eval date -v-${DAYS}d "+%Y-%m-%d"`
0000026 * * * * cd /usr/websites/freshports.org/backend && ./compare.sh > /dev/null 2>&1
[22:57 webserver dvl ~] % sudo rm /var/cron/tabs/dan
[22:57 webserver dvl ~] %
|
|
This one is gone
[22:58 mydev dvl ~] % id dan
id: dan: no such user
[22:58 mydev dvl ~] % sudo cat /var/cron/tabs/dan
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.ItHoAwDR2t installed on Fri Mar 3 21:38:46 2023)
# (Cron version -- $FreeBSD$)
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to `dan', no matter whose crontab this is
MAILTO=dan@langille.org
#minute hour mday month wday command
#
# Save some entropy so that /dev/random can re-seed on boot.
23 1 * * * /usr/bin/touch ~/.touch_a_file_to_force_backups
|