I'm trying to use the caffeinate command to prevent sleep on a Macbook. It keeps running into the error "Terminated: 15". Does anyone know how I can troubleshoot this? Usually it works, it happens after an hour or so. I didn't interrupt the process myself, not sure what's going on.

I don't know if this matters but I am running it while using some remote desktop software called AnyDesk. Maybe it does not have the right permissions to run for a long time? I'm not sure what it could be, if anyone has any insight please let me know

You must log in to answer this question.

Browse other questions tagged .