You really have 3 options depending on your specific needs. ...

You really have 3 options depending on your specific needs.

1. my favorite was already suggested, which is to use screen. Screen will allow you to detatch from it and reattach later to the same session. This is particularly useful if you need to still be able to work with the program interactively later on.

2. if the program only needs to be run periodically, and not be left running at all times, you can schedule it with either cron or at. This does not leave it running in the background per se, but rather will schedule it to run on a reguarl schedule.

3. Use setsid. Setsid is a tool that will allow you to run the script / program from a new session. This means it's no longer attached to your bash / telnet session and wll continue to run even after you log out. The draw back to this is that you will be able to work with the script interactively. But if you are just looking for output, you can redirect it to a file to "log" its output.

Click Here!