Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I arrange for a fetchmail daemon to get killed when I log out?

0
Posted

How can I arrange for a fetchmail daemon to get killed when I log out?

0

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 for it. Some people start up and shut down fetchmail using the ppp-up and ppp-down scripts of pppd.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123