I wrote two shell scripts a.sh and b.sh. In a.sh and b.sh I have a infinite for loop and they print some output to the terminal. I want to write another script which calls both a.sh and b.sh but I want the user to regain control of the terminal immediately, instead of having the script run infinitely and I want to hide the output in terminal.
I wrote two shell scripts a.sh and b.sh . In a.sh and b.sh I
Share
Use
nohupif your background job takes a long time to finish or you just use SecureCRT or something like it login the server.Redirect the stdout and stderr to
/dev/nullto ignore the output.