Friday, October 7, 2022

Starting multiple Byobu process through shell script

 How to Start multiple Byobu process through shell script:


Below is sample code:

byobu new-session -d -s "onreboot"

byobu new-window -t "onreboot":1 -n "web app" "sh ./webapp-build.sh" >/home/ubuntu/scripts/web_launch.log 2>&1

byobu new-window -t "onreboot":2 -n "api app" "sh ./api-build.sh" >/home/ubuntu/scripts/api_launch.log 2>&1

No comments:

Post a Comment