how to run .sh file in background linux

C++
$ nohup ./my-shell-script.sh &

Source

Also in C++: