This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Run multiple konsoles from script

Tags: None
(comma "," separated)
User avatar
ychaouche
Registered Member
Posts
33
Karma
0
OS

Run multiple konsoles from script

Thu Nov 07, 2019 11:09 am
This script used to run (open) multiple konsoles at a time (in KDE 4)
Code: Select all
ychaouche#Bahloola 12:05:36 ~ $ cat /home/ychaouche/SCRIPTS/monitoring
konsole -e /home/ychaouche/SCRIPTS/messagerie.activity           
konsole -e /home/ychaouche/SCRIPTS/messagerie.banlog.expect     
konsole -e /home/ychaouche/SCRIPTS/messagerie.fail2ban.log.expect
konsole -e /home/ychaouche/SCRIPTS/messagerie.mailcop.expect     
konsole -e /home/ychaouche/SCRIPTS/dns_secours.querylog.expect   
konsole -e /home/ychaouche/SCRIPTS/messagerie.externalaccess     
ychaouche#Bahloola 12:05:39 ~ $


But now it only opens one konsole, and doesn't open the second konsole until I close the first one. How can I get the old behavior ?
User avatar
Gallaecio
KDE Developer
Posts
116
Karma
0
OS
Try appending an ampersand symbol at the end of each line, which starts each command in the background.

Code: Select all
konsole -e /home/ychaouche/SCRIPTS/messagerie.activity &           
konsole -e /home/ychaouche/SCRIPTS/messagerie.banlog.expect  &
konsole -e /home/ychaouche/SCRIPTS/messagerie.fail2ban.log.expect &
konsole -e /home/ychaouche/SCRIPTS/messagerie.mailcop.expect &
konsole -e /home/ychaouche/SCRIPTS/dns_secours.querylog.expect &
konsole -e /home/ychaouche/SCRIPTS/messagerie.externalaccess &


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]