How can I run a shell script in background?
scripts
command-line
Share
Improve this question
Follow
edited Jun 24 '12 at 22:18
pl1nk
5,53955 gold badges2424 silver badges4545 bronze badges
asked Dec 15 '11 at 21:00
erkan şentürk
90711 gold badge88 silver badges1111 bronze badges
Add a comment
3 Answers
127
Depending on what you are wanting, just add a & to the end of the command
script.sh &
command &
If you are running it in a terminal, and you want to then close the terminal, use nohup or disown