(Elementary user)
Have I understood the use of the '&' character correctly when used in conjunction with a script.....
Let's suppose I have logged in to the server via SSH and type the following:
cd /path/to/script/
./my_script
Would I be correct in thinking that my script will only execute as long as I maintain the SSH shell connection?
When running the script, should I add the flag like this:
./my_script &
Thus the script will run in the background ie. despite the termination of my SSH connection?
Best regards
Have I understood the use of the '&' character correctly when used in conjunction with a script.....
Let's suppose I have logged in to the server via SSH and type the following:
cd /path/to/script/
./my_script
Would I be correct in thinking that my script will only execute as long as I maintain the SSH shell connection?
When running the script, should I add the flag like this:
./my_script &
Thus the script will run in the background ie. despite the termination of my SSH connection?
Best regards