Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-03-26 08:47:11

youni
Member
Registered: 2023-02-28
Posts: 10

Bash in Xfce4-terminal: open 4 new tabs and run different commands

Hello! I am using Devuan linux with XFCE4 and I use Xfce4-terminal that works fine and quickly. I often need to do repeating tasks that I finally want to do with just an alias:
1. open new tab in xfce4-terminal
2. run command: ssh server1
3. open new tab in xfce4-terminal
4. run command: ssh server2
5. open new tab in xfce4-terminal
6. run command: ssh server3
7. open new tab in xfce4-terminal
8. run command ssh server4

I hope I can type bash script that will run tabs in xfce4-terminal. Now I only know how to open 4 new windows:

xfce4-terminal -e 'ssh server1'; xfce4-terminal -e 'ssh server2'; xfce4-terminal -e 'ssh server3'; xfce4-terminal -e 'ssh server4';

But i wish to stay in that window where I already am and just to add 4 tabs and run commands there.
Can you help?

Offline

#2 2024-03-26 10:47:09

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 416

Re: Bash in Xfce4-terminal: open 4 new tabs and run different commands

xfce4-terminal takes many argument ie --tab, --execute so I would imagine what you want will work if constructed properly.

See man xfce4-terminal for various options


Siduction
Debian Sid
Xfce 4.18

Offline

Board footer

Powered by FluxBB