I have started a Perl script from the terminal that runs in the background:
>perl myScript.pl &
If I logout, will it stop my script from running?
Yes, this is dead easy to test. Write a perl script that appends the date to a file every minute, and run it in the background. Log out, wait 5 minutes, log in, check for 5 entries corresponding to the times you are logged out. To get it working in future (too late if it's already running) use nohup as explained in another answer. You can background a foreground script after you start it (CTRL-Z) but you can only nohup it at execution
In addition to @stuffe's answer, if you are logged in via
To avoid this problem, you'll want to use the
This will keep running on your office workstation even after you have disconnected/logged out from your home machine.