Is it possible for bash commands to continue before the result of the previous command?

后端 未结 6 1388
心在旅途
心在旅途 2020-11-27 16:39

When running commands from a bash script, does bash always wait for the previous command to complete, or does it just start the command then go on to the next one?

i

6条回答
  •  渐次进展
    2020-11-27 17:00

    They wait until the previous one is finished. However, you can write 2 scripts and run them in separate processes, so they can be executed simultaneously. It's a wild guess, really, but I think you'll get an access error if a process tries to write in a file that's being read by another process.

提交回复
热议问题