2

I have 3 bash commands/files that I need to launch on seperate terminals when my ubuntu 20 machine startups

$ ./script1
$ ./script2
$ ./script3

I want all these 3 script to run in each separate terminals.

Sample Contents of script:

#!/bin/bash

cd /var/www/html/myproject php -S 192.168.10.222:8080 -t public/

1 Answers1

0

create some "main script" with this code:

 #!/bin/bash
 konsole --noclose  -e /bin/bash /path/to/my/script1 &
 konsole --noclose  -e /bin/bash /path/to/my/script2 &
 konsole --noclose  -e /bin/bash /path/to/my/script3

and put path to "main script" in your .bashrc

That will start all your 3 scripts in separate terminals after your login in Ubuntu

user216
  • 100