I am working with a script which automatically enrolls macOS devices (installs software, sets up system preferences etc.) using Jamf. While the script is running, I want a real-time log to appear on the desktop for the administrator to check progress etc.
Using the SE search I could only find logging to files after script was finished.
Q: how do I add real-time logging to a text-file on the desktop into my bash script?
myscript | tee file.log
– Pavel Apr 29 '23 at 01:55