It's 19 Jun 98 17:10:16,
We'll return to [EMAIL PROTECTED] and All's
discussion of Automatic Email fetcher
ra> Does anyone know of a program that will dial into an ISP (like maybe
ra> one specifies ppp1), initiate POP and SMTP downloads, and SMTP uploads,
ra> and after all such traffic has completed, drops the connection?
ra> I know what the steps are manually. But I want to setup a cron job
ra> that will do this for me, especially for those times when I have to
ra> spend a few days out-of-town. The asynchronous nature of some of these
ra> operations, is what's stopping me from doing it with a script file.
You could probably cobble something up with diald and some clever ip-up
scripting.
The ip-up script would have to do the following:
Run a fetch process to pick up your POP mail.
Run sendmail -q to flush sendmail's queue.
diald would be configured to bring up the interface at a specific time,
or alternatively, a cron job triggers a dummy event that will initiate
the connection (e.g. a one off ping). After traffic stups, diald will
shut down the link after a specified idle time (and alternatively, it
could be configured to shut down the link after a certain time, to
handle the case of a connection "sticking" open.
I haven't tried this, but it should work.
.. It's not the bullet that kills you, it's the hole!
--
|Fidonet: Tony Langdon 3:632/367.2
|Internet: [EMAIL PROTECTED]
|
| Standard disclaimer: The views of this user are strictly his own.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.