It's hard to summarise my question in the title, so here is the actual situation. I am running
picam to use my camera module as a security camera. I don't need it when I'm in the house, so before I leave I SSH into my Pi, start my web server (which hosts images that picam generates if motion is detected) and run
python picam.py. The terminal is then running the script - I have to Ctrl + C out of it to stop it.
If I SSH in later, I am in the terminal again, but one in which the script isn't running. Is the script still running in a separate terminal in memory? Does it stop when I SSH in again? Can I access that running terminal? What happens if I run the script again from the new terminal?