Reply to topic

Run multiple konsoles from script

User avatar ychaouche
Registered Member
Posts
26
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 &

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], grahm, hensem, Majestic-12 [Bot], Sarah_Caterina, sh-zam, Sogou [Bot], Yahoo [Bot]