Seems like cron events are skipped when the device is in deep-sleep.
You could work around that by using something like "anacron" instead of
regular cron.
Another option would be to prevent your device from going to deep sleep
(e.g. by using "powerd-cli active"). This however, will drain your
battery a lot.
The best option however, would probably be to question the reason why
you need cron at all. What are you trying to achieve? Does it really
need to be triggered every minute?
Br,
Michael
On 08.12.2015 15:05, Rasool Ent. wrote:
Hello
I have a Nexus 4
stable ota8
I'm in Ubuntu, I use cron utility.
But the phone when the screen is turned off, the process fail.
What should I do so that I can always use cron?
This command inside my cron.
* * * * * /home/phablet/script2.sh
And this is the script containing the command "ls":
http://paste.ubuntu.com/13823643/
And the output script log:
http://paste.ubuntu.com/13823668/
And the output of the syslog:
http://paste.ubuntu.com/13823812/
Thank You