S
S
Shandy2021-08-27 11:28:55
bash
Shandy, 2021-08-27 11:28:55

How to start multiple tmux sessions using bash script?

There are several python bots, I wanted to write a script so that it automatically starts a tmux session and starts a bot in it. I don't quite understand how to do this, can you show an example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2021-08-27
@MrShandy

Why run bots in tmux at all?
You need to run them using your distribution's initialization system. Most likely, you have systemd, so you should use it. Create a unit file for each bot and add it to autorun.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question