Need to write a shell script that opens byobu
terminal with separate tabs. First line opens new byobu
session and subsequent lines connect to that session and open new tabs. Its kind of automate opening terminal.
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"
Problem here is when I run once this shell script it runs only first command and then stops. If I run it again then it executes the remaining lines with the message:
duplicate session: Server
What am I doing wrong here ?