How can I arrange for a fetchmail daemon to get killed when I log out?
The easiest way to dispatch fetchmail on logout (which will work reliably only if you have just one login going at any time) is to arrange for the command `fetchmail -q’ to be called on logout. Under bash, you can arrange this by putting `fetchmail -q’ in the file `~/.bash_logout’. Most csh variants execute `~/.logout’ on logout. For other shells, consult your shell manual page. Automatic startup/shutdown of fetchmail is a little harder to arrange if you may have multiple login sessions going. In the contrib subdirectory of the fetchmail distribution there is some shell code you can add to your .bash_login and .bash_logout profiles that will accomplish this. Thank James Laferriere