Multiple Terminals, Multiple Commands, lxterminal

I am working with Python. Having written a script, I try to use os.system()it to open a new terminal, create new tabs and run different commands on each corresponding tab (which appear at the same time).

I am familiar with gnome-terminal, because this is what I used in the past, however, the system I'm currently working with is Raspberry Pi (Raspbian) uses lxterminal.

I always used

    os.system("gnome-terminal --tab -e 'command1' --tab -e 'command2' ")

with success, but I don’t know how to reproduce these results using lxterminal. So basically I ask if and how lxterminalto do this.

I can create tabs, no problem, using

    lxterminal --tabs=1,2,3

and

    lxterminal --tabs=1,2,3 --command="command1"

... , , , 2 3.

lxterminal - , ... , , , -t, --title --tabs , -

    lxterminal --tabs=1[--command="command1"],2[--command="command2"]

.... .

gnome-terminal, lxterminal , .

+4
1

:

lxterminal --command 'command1 & command2'

issue

0

Source: https://habr.com/ru/post/1629728/


All Articles