You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running script via crontab, it sometimes writes empty files, even with retries. When running via bash while being at the same geolocation, it writes a file as expected.
Maybe this is still due to the geolocation that termux-location cannot determine... This, however, contradicts my tests running directly from bash. Ultimately, I need a way to make sure termux-location succeeds.
Problem description
When running script via crontab, it sometimes writes empty files, even with retries. When running via bash while being at the same geolocation, it writes a file as expected.
Script
save-location.sh
:When executed via
bash save-location.sh
, it writes the termux location to the file.When running as a crontab job
then some of the files are empty, some are populated.
Steps to reproduce
Look into
~/location
. Some of the files will be empty, some will contain the location json.Expected behavior
All files contain termux location json.
Additional information
The text was updated successfully, but these errors were encountered: