I have a bash script that starts a tmux session with some monitoring tools, and have a cronjob that runs it on startup; however, I can't see the usual prefix to my commands, and I can't use any arrow keys.
Normally it should look like this:
(the actual script)
#!/bin/sh
cd /home/ubuntu/
tmux start-server
tmux new-session -d -s "0" bash
tmux selectp -t 1
tmux splitw -h -p 50
tmux selectp -t 2
tmux splitw -v -p 50
tmux selectp -t 3
tmux send-keys "htop" C-m
# Select pane 1
tmux selectp -t 0
tmux attach-session -t "0"
tmux detach
What went wrong??



