# Create new screen with name test_1, run ping and detach
screen -dmS test_1 -t TAB-0 bash -c 'ping mail.ru; exec sh'
# Create new tab in existing screen and run htop app
screen -S test_1 -X screen -t TAB-1 bash -c 'htop ; bash'
# Create new tab in existing screen and run uptime app
screen -S test_1 -X screen -t TAB-2 bash -c 'watch uptime ; bash'
Created
December 7, 2021 09:15
-
-
Save azubkokshe/8e8dac65ad6b902084f02b22d362f42a to your computer and use it in GitHub Desktop.
Executing a command in the existing screen in a new tab from CLI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment