I have cronjobs doing various cleanup tasks:
$ crontab -l
0 * * * * find ${HOME}/Downloads -depth 1 -d -mtime +12h -exec /usr/local/bin/trash {} \;
* * * * * /usr/bin/defaults delete com.apple.Spotlight userHasMovedWindow > /dev/null
* * * * * /usr/bin/defaults delete com.apple.Spotlight windowHeight > /dev/null
However, it seems the jobs, for some reason, never exits. Instead they linger on and show as (cron) companioned by either (find) or (defaults) in the output of ps and in the activity monitor.
It happens for all jobs.
After hours or days, the computer freezes as the OS won't allow any more processes to spawn.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15
BuildVersion: 19A583
sw_verswill show you that data. – bmike Oct 14 '19 at 14:59
– Thomas Jensen Oct 14 '19 at 21:32$ sudo /usr/bin/defaults delete com.apple.Spotlight windowHeight > /dev/null2019-10-14 23:30:42.514 defaults[10252:339670]Domain (com.apple.Spotlight) not found.Defaults have not been changed.cron– bmike Oct 14 '19 at 21:45