termux / termux-boot

Termux add-on app allowing programs to be run at boot.
https://f-droid.org/en/packages/com.termux.boot
931 stars 219 forks source link

tmux new-session - not working #117

Open clasher113 opened 1 year ago

clasher113 commented 1 year ago

I'm trying to create new tmux session and run another script in it, but when trying to connect to this session it says that no sessions. I am 100% sure that the boot script is working, because him starts ssh which I can to connect to + all commands in the script are executed if you run the script manually termux-wake-lock && sshd && whoami && nmap localhost && sv-enable ftpd && sv up ftpd && tmux new-session -d && tmux send-keys ./start-ubuntu20.sh C-m && tmux send-keys ./start.bash C-m Termux 0.118.0 Termux:Boot 0.7 LG K8 (2017) M200E Android 8.1.0

Grimler91 commented 1 year ago

Please provide information about your device and termux-boot version, and share the boot script (see bug report template)

Grimler91 commented 1 year ago

Add a shebang to your boot script, and make sure the start-ubuntu20.sh script has a valid shebang (i.e. /data/data/com.termux/files/usr/bin/sh instead of /usr/bin/sh for example)

clasher113 commented 1 year ago

Add a shebang to your boot script

Still "no sessions", though i see the start-ubuntu20.sh script executed and start.bash is running