answered
2018-02-17 13:39:10 +0200
What's your device? If it is XperiaX then unfortunately it does not work that way as when the device is sleeping and cron wakes it up for some reason the network stack does not wake up :(
I noticed this as I use cron to backup my device with rsync during the night. With Jolla sbj1 it worked always, but with my XperiaX it doesnt.
I suppose the way to do it would be cron to wake up networking with a dbus message to ofono or network magager?
It does not matter whether you have a wlan or LTE configured, network cannot be reached with either when the device is woken up by cron...
---------- edit ----------
Now I have been totally humiliated and will have to retreat in the corner in shame :(
The problem is indeed not sleep states as I so confidently assumed but the fact that nemo user does not have secondary groups when invoked from crontab... damn!
---------- edit ----------
The issue has been now fixed. See the posting in "cronjob-on-sailfish" thread;
https://together.jolla.com/question/16434/cronjob-on-sailfish/?answer=179698#post-id-179698
I'm not familiar with crontab, but tried your line of code anyway and I got
-bash: */5: No such file
.So I tried again but without
Spam Hunter ( 2018-02-17 12:52:32 +0200 )edit*/5****
and then the test file was populated with data.@Edz it's a crontab line and not a bash command :) :)
juiceme ( 2018-02-17 13:40:27 +0200 )editlol, thanks, I did say I'm not familiar with crontab! :P
Spam Hunter ( 2018-02-17 14:07:05 +0200 )edit