Skip to main content
group command syntax was incorrect
Source Link
Eli Heady
  • 1.2k
  • 7
  • 18

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set. The list construct executes commands in a subshell, so variable assignments are not preserved.

To execute a group of commands:

{ command1 & command2 & } &

You can also execute your commands in a list (subshell):

( command1 & command2 ) &

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set. The list construct executes commands in a subshell, so variable assignments are not preserved.

To execute a group of commands:

{ command1 & command2 } &

You can also execute your commands in a list (subshell):

( command1 & command2 ) &

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set. The list construct executes commands in a subshell, so variable assignments are not preserved.

To execute a group of commands:

{ command1 & command2 & } &

You can also execute your commands in a list (subshell):

( command1 & command2 ) &
added 435 characters in body
Source Link
Eli Heady
  • 1.2k
  • 7
  • 18

You seem to be asking how to spawn multiple processes simultaneously in the background.

The bash manpage section titled Compound CommandsCompound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set. The list construct executes commands in a subshell, so variable assignments are not preserved.

To execute a group of commands:

{ command1 & command2 } &

You can also execute your commands in a list (subshell):

( command1 & command2 ) &

You seem to be asking how to spawn multiple processes simultaneously in the background.

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set.

{ command1 & command2 } &

You can also execute your commands in a list:

( command1 & command2 ) &

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set. The list construct executes commands in a subshell, so variable assignments are not preserved.

To execute a group of commands:

{ command1 & command2 } &

You can also execute your commands in a list (subshell):

( command1 & command2 ) &
added 435 characters in body
Source Link
Eli Heady
  • 1.2k
  • 7
  • 18

Execute your commandsYou seem to be asking how to spawn multiple processes simultaneously in athe background.

The bash manpage section titled Compound Commands has two options that would work, list: and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (command1 & command2 ) &. Both can be used to background multiple commands within, and finally to background the entire collection as a set.

{ command1 & command2 } &

See the Compound Commands section of the bash manpageYou can also execute your commands in a list:

( command1 & command2 ) &

Execute your commands in a list:

(command1 & command2 ) &

See the Compound Commands section of the bash manpage

You seem to be asking how to spawn multiple processes simultaneously in the background.

The bash manpage section titled Compound Commands has two options that would work, list and group commands.

A group command is a series of commands enclosed in curly braces {}. A list is the same, enclosed in parentheses (). Both can be used to background multiple commands within, and finally to background the entire collection as a set.

{ command1 & command2 } &

You can also execute your commands in a list:

( command1 & command2 ) &
Source Link
Eli Heady
  • 1.2k
  • 7
  • 18
Loading