for a self made photo calendar, i want to run a very little script that copies the appropriate daily image every day at midnight to another location, where a photo frame app finds it.
To enable the run at midnight i have understood that i shall permit WAKE_LOCK. But i don't want to keep the phone powered on for this one script. It would be best, if the scheduler would realize in the morning, at power on, that there is a pending operation, and then execute this operation, meaning my scheduled script. If i remember correctly, the original linux cron does work this way. Did i miss an option?
thank you and kind regards from Germany
Date: 15 Mar 2014 21:10
Number of posts: 5
RSS: New posts
WAKE_LOCK flag prevents your device go to sleep mode. It is not related to power off/on mode.
Setting WAKE_LOCK flag to Scheduled scripts it is a good idea since probably these scripts are executed when the device it is not used, and probably goes to sleep mode while script is running.
In the other hand, SManager it is not based on cron daemon, it based on Android AlarmManager, And it does not manage lost alarms.
After your request I'll study how to implement it and I hope add it to SManager.
Meanwhile you can also execute your script on boot event. And checking to it as the first lines when was executed last time, this is only an idea.
i realised that you made a new version today with (among others) this feature:
Does this cover my wish to execute a "missed" script, which was sheduled at midnight, at the next possible time (meaning when the phone is turned on in the morning)?
Sorry if i don't test it on my own at once ;-)
thank you and kind regards
This feature was not added in this version.
I hope add it for the next version, but make sure it will be clear in "new features" list.
About "Queued scripts(On events,Scheduled, widgets) can be executed in background."
In previous SManager version all On events,scheduled or widgets scripts were executed sequentially. That means if a script requested a lot of time the rest of script were not executed until this one finished.
Now the long taking time scripts can be executed in background in order to allow continue executing scripts.
oops, he dropped my quotation. I meant this feature:
Queued scripts(On events,Scheduled, widgets) can be executed in background.