rtrouton / rtrouton_scripts

Scripts to share
MIT License
1.3k stars 492 forks source link

Detect 32-bit macOS Apps Crashes #56

Closed ponyboy119 closed 4 years ago

ponyboy119 commented 5 years ago

First off, thanks for sharing this script! I hit a minor issue and found a simple fix. TL;DR system_profiler could use a "-timeout 0" parameter specified or else it can time-out after 180 seconds.

When I ran this script, I received this error:

2019-04-29 15:26:36.642 system_profiler[43509:22585681] Terminating '/usr/sbin/system_profiler -nospawn -xml SPApplicationsDataType -detailLevel full' because it did not respond. 2019-04-29 15:26:36.724 system_profiler[43509:22585679] Non-zero termination status from '/usr/sbin/system_profiler -nospawn -xml SPApplicationsDataType -detailLevel full', termination status: 15

I added "-timeout 0" to the variable defined on Line 22 so that system_profiler does not hit its default 180 second timeout parameter (hooray for man pages), and it runs without issue for my old Mac Pro. Thanks again for sharing.