Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux run two commands in parallel

Add the '&' symbol to the end of your command seperated by a space.
This will put the command in the background and allow bash to continue
running the script.

Example:
#!/bin/bash
command1 &
command2 &
command3
Source by www.slashroot.in #
 
PREVIOUS NEXT
Tagged: #linux #run #commands #parallel
ADD COMMENT
Topic
Name
3+5 =