Asynchronous shell commands

LorenVS picture LorenVS · Mar 3, 2010 · Viewed 84.2k times · Source

I'm trying to use a shell script to start a command. I don't care if/when/how/why it finishes. I want the process to start and run, but I want to be able to get back to my shell immediately...

Answer

Carl Norum picture Carl Norum · Mar 3, 2010

You can just run the script in the background:

$ myscript &

Note that this is different from putting the & inside your script, which probably won't do what you want.