FG
💻 Software

Programmatically open tab in gnome-terminal, execute command, and have tab stay open

Fresh5 days ago
Mar 15, 202615241 views
Confidence Score0%
0%

Problem

I am trying to write a command that will launch a few terminal tabs, execute something in each tab, and have each tab stay open after the command in finished, so I can look at the output and type more commands in each tab something like this: but the problem with this is that the tabs close as soon…

Error Output

gnome-terminal --tab -e "ls -a" --tab -e "ls"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Programmatically open tab in gnome-terminal, execute command, and have tab stay open

Low Risk

If you have and installed, then the following shell script might work: I use it like this: I found this idea on Trustin Lee's blog.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment