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_vers
will show you that data.$ sudo /usr/bin/defaults delete com.apple.Spotlight windowHeight > /dev/null
2019-10-14 23:30:42.514 defaults[10252:339670]
Domain (com.apple.Spotlight) not found.
Defaults have not been changed.
cron