Bash script: How to execute commands consecutively without waiting for the previous one?

NES

In a bash script that execute 2 commands like this

#!/bin/bash
gedit
nautilus

Nautilus starts not before gedit is closed? How can i avoid this?

shellholic

Simply put gedit in the background

#!/bin/bash
gedit &
nautilus

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Bash script: How to execute commands consecutively without waiting for the previous one?

From Dev

How to execute git commands from bash script?

From Dev

How to execute the following commands in a bash script?

From Dev

How to execute sudo commands with Expect & send commands in bash script?

From Dev

Bash Script execute commands from a file but if cancel on to jump on next one

From Dev

running commands consecutively in a bash

From Dev

Execute gcloud commands in a bash script

From Dev

Bash script to spawn and execute commands

From Dev

How to execute commands in docker container as part of bash shell script

From Dev

How to execute shell commands in a loop from within a bash script?

From Dev

Using GNU screen to run commands consecutively (next one runs only after previous one finishes)

From Dev

How does bash execute commands

From Dev

How to execute different commands based on success / failure of previous command in shell script?

From Dev

How to execute a bash script?

From Dev

Cannot execute shell commands in bash script

From Dev

bash script execute commands after ssh

From Dev

Bash script to read from a file and execute commands

From Dev

Bash script to read from a file and execute commands

From Dev

Bash script to execute multiple Unix commands

From Dev

script doesn't execute commands without tty

From Dev

How can I execute a script as root, execute some commands in it as a specific user and just one command as root

From Dev

Expect not waiting for prompt - script stops without sending other commands

From Dev

How to call git commands on private repo using cygwin to execute bash script in Jenkins

From Dev

Execute bash script loop without exit on error

From Dev

How to execute several commands after each other with one request to the terminal (without using a file)?

From Dev

How to execute several commands after each other with one request to the terminal (without using a file)?

From Dev

How to execute multiple CLI commands in a python script?

From Dev

How to execute the vim commands through shell script

From Dev

How to execute multiple CLI commands in a python script?

Related Related

  1. 1

    Bash script: How to execute commands consecutively without waiting for the previous one?

  2. 2

    How to execute git commands from bash script?

  3. 3

    How to execute the following commands in a bash script?

  4. 4

    How to execute sudo commands with Expect & send commands in bash script?

  5. 5

    Bash Script execute commands from a file but if cancel on to jump on next one

  6. 6

    running commands consecutively in a bash

  7. 7

    Execute gcloud commands in a bash script

  8. 8

    Bash script to spawn and execute commands

  9. 9

    How to execute commands in docker container as part of bash shell script

  10. 10

    How to execute shell commands in a loop from within a bash script?

  11. 11

    Using GNU screen to run commands consecutively (next one runs only after previous one finishes)

  12. 12

    How does bash execute commands

  13. 13

    How to execute different commands based on success / failure of previous command in shell script?

  14. 14

    How to execute a bash script?

  15. 15

    Cannot execute shell commands in bash script

  16. 16

    bash script execute commands after ssh

  17. 17

    Bash script to read from a file and execute commands

  18. 18

    Bash script to read from a file and execute commands

  19. 19

    Bash script to execute multiple Unix commands

  20. 20

    script doesn't execute commands without tty

  21. 21

    How can I execute a script as root, execute some commands in it as a specific user and just one command as root

  22. 22

    Expect not waiting for prompt - script stops without sending other commands

  23. 23

    How to call git commands on private repo using cygwin to execute bash script in Jenkins

  24. 24

    Execute bash script loop without exit on error

  25. 25

    How to execute several commands after each other with one request to the terminal (without using a file)?

  26. 26

    How to execute several commands after each other with one request to the terminal (without using a file)?

  27. 27

    How to execute multiple CLI commands in a python script?

  28. 28

    How to execute the vim commands through shell script

  29. 29

    How to execute multiple CLI commands in a python script?

HotTag

Archive