You can nohup(1) a script to keep it running after you disconnect. You could also run the script inside GNU screen, and you would be able to reconnect to your console.