-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
Description
Problem description
I’m encountering multiple issues when using Termux on an Android 13 device:
- Startup scripts (~/.termux/boot.sh) sometimes do not execute as expected.
- crond requires manual starting with
crond -Peach session; the -b option is not recognized. - Temporary crontab edits often truncate lines or fail to save, especially when editing multiple commands.
- fetch-and-clean scripts work manually but sometimes fail when scheduled via crontab, producing errors like:
- "ls: cannot access '/data/data/home/termux_work/downloads/example_*.html': No such file or directory"
- "mv: missing destination file operand"
- Termux behavior differs between sessions, even with identical scripts and crontab entries.
This seems related to Android 13 permissions, startup behavior, or PATH/environment inconsistencies.
Logs:
- [Please attach any available logs or error messages from
logcator your scripts.]
Steps to reproduce the behavior.
- Verified crontab entries and ran scripts manually — they work.
- Created
~/.termux/boot.shand made it executable. - Started crond manually with
crond -P. - Ensured directories exist (
~/termux_work/{downloads,logs,scripts}) and scripts have execute permissions. - Observed errors when scripts are invoked automatically on boot or via crontab.
What is the expected behavior?
Scripts and crond should start automatically on Termux launch, scheduled commands should run without truncation, and logs should record all activity.
System information
- Termux application version: [current version]
- Android OS version: 13
- Device model: [your device model]
Reactions are currently unavailable