I have a bot which I run inside tmux session to keep it alive always. Sometimes, I server reboots and if I am not home or with the internet, my bot remains offline. I can add a cron job to start the bot. I have a script like this
tmux new -s bot
but what it does is that it starts a new tmux session but runs
outside of tmux session. I want it to run that script inside the tmux session it opens up i.e., "bot"