Automating python script with Crontab with a Macbook in sleep mode
I am really struggling to get my macbook air m1 to run a daily Cron job while the laptop is closed and not in use (i presume in sleep mode). when i have the laptop open and am actively using it, the cron job runs perfectly and the python script it is automating also works perfectly. I dont want to completely disable sleep mode or anything like that. from my research it sounds like the elegant solution is using pmset to wake up the computer so it can run the cron job. I cannot get this to work.
How to schedule sh file in mac machine?
I have a script file in mac machine , the script was working fine when i run the script file manually , but when i scheduled that job in crontab , the scheduling is not working.