You must write a shell script that opens a terminal byobuwith separate tabs. The first line opens a new session byobuand the subsequent lines connect to this session and open new tabs. This is a kind of terminal for opening automation.
Ex -
byobu new-session -s "Server" "redis-server"
byobu new-window "redis-cli"
byobu new-window "sudo mongod --port 27017 --dbpath /data/db/rs0 --replSet rs0"
byobu new-window "mongo"
The problem here is when I run this shell script, it only runs the first command and then stops. If I run it again, it will execute the remaining lines with the message:
repeating session: server
What am I doing wrong here?
source
share