How do you want them to run? If you want them to start in the background and run sequentially, you would do something like this:
(sleep 2; sleep 3) &
If, on the other hand, you would like them to run in parallel in the background, you can do this:
sleep 2 & sleep 3 &
And these two methods can be combined, for example:
(sleep 2; echo first finished) & (sleep 3; echo second finished) &
Bash bash, often there are many different methods for performing the same task, although sometimes with slight differences between them.
Kitsune Jan 30 '13 at 20:00 2013-01-30 20:00
source share