Simple question about Linux (Debian)

Associate
Joined
16 Nov 2011
Posts
1,023
Location
127.0.0.1
How do I open a new windows\tab using byobu or something similar and execute a script at the same time. I am wanting to create a script that will open say 32 windows and execute a script in each to start a server.
 
Is there a specific need for it to be in a separate window or tab? If not, just spawn them in the background with an &.

e.g. bash
Code:
#!/bin/bash
for i in {1..32}
do
   your-server-command > output_$i &
done

Also check out the commands "jobs", "fg", and "bg".
 
Is there a specific need for it to be in a separate window or tab? If not, just spawn them in the background with an &.

e.g. bash
Code:
#!/bin/bash
for i in {1..32}
do
   your-server-command > output_$i &
done

Also check out the commands "jobs", "fg", and "bg".

I tried that and it seems to work, although now I am unable to tell the processes apart. I know it tells me the PID and I can kill that PID, although I tried that and the server was running, but it would be nice if I could associate a name and then kill it by that name.
 
Back
Top Bottom