Lets take such bash script:
Code:
#!/bin/bash
-----
<begining of script>
-----
command1 ; command2 ; command3
-----
<rest of script>
How to run "command1 ; command2 ; command3" in background? I mean that to execute in background first command, when it ends run second and when it ends run third one.
Of course it is possible to place such set of commands in separate script and whole run in background using "&" directive.
But how to make it in original script?