Is it possible in Bash to call a shell script from another shell script but not have the original script wait for the sub-script to complete?
Bash: Call shell script but do not wait for return code
bashjob-control
Related Topic
- Linux – want user will logout from shell on exit of bash script
- Bash – How to write a bash script that sets up aliases for the parent shell
- Linux – How to kill and wait for background processes to finish in a shell script when I Ctrl+C it
- Linux – Bash script – wait for all xargs processes to be finished
- Bash – curl bash script works fine in shell but not work in cronjob
Best Answer
Just fork it with a
&
. As in,sh /path/to/script/script.sh &
This will print messages from the subscript, but you can replace the & with
>/dev/null &
and suppress the output.