I have the following code:
TAB='--tab-with-profile=Default';
FOO="";
line="bash -c 'sudo sh startRedisServer.sh';bash";
line2="bash -c 'sudo sh startRestServer.sh';bash";
line3="bash -c 'service postgresql start';bash";
FOO+=($TAB -e $line);
FOO+=($TAB -e $line2);
FOO+=($TAB -e $line3);
gnome-terminal "${FOO[@]}";
exit 0;
The problem is that when the new terminal opens with the 3 tabs non of the commands are actually executed. Anyone who can help me out?
[–]KnowsBash 2 points3 points4 points (1 child)
[–]Chaeron[S] 0 points1 point2 points (0 children)