#!/bin/bash

sudo apt-get install tmux -y

session="oai_UE"

## Split into 4 panes
tmux new-session -d -s $session

## Run OAI UE
tmux send-keys -t 0 'cd ~/oai/cmake_targets/ran_build/build/' ENTER \; send-keys -t 0 'sudo ./nr-uesoftmodem -r 106 --numerology 1 --band 78 -C 3619200000 --sa --nokrnmod --ue-fo-compensation --ue-max-power 0 -E -O ../../../targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf' ENTER;

tmux attach-session -t $session
