[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ip-up for each user?



Robbie Huffman wrote:
  >On Mon, Apr 05, 1999 at 08:58:22AM +0100, Oliver Elphick wrote:
  >> It sounds as if you should use diald to bring the link up automatically
  >> whenever a program attempts to connect to an external site.  My own
  >> arrangement is for fetchmail to run whenever the link comes up, and for
  >> cron to do a single ping from time to time to ensure that the link does
  >> come up and collect mail, even if no-one is using it otherwise.
  >
  >What I'm looking for is your "arrangement" which allows for fetchmail to
  >run when PPP is started. I'm guessing you just played with the systemwide
  >ip-up script?
 
This is in /etc/diald/ip-up:
===================================================================
#!/bin/sh

# Set the time and date
ntpdate  -s -t 5 ntp2c.mcc.ac.uk ntp4.strath.ac.uk &

# Get mail
fetchmail  mail.enterprise.net

# Run the mail queue
runq
===================================================================

I presume you could do the same in /etc/ppp/ip-up/<something>.

fetchmail won't allow 2 copies of itself to run, so you don't need to
worry about that.


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "My dear brothers, take note of this: Everyone should  
      be quick to listen, slow to speak and slow to become  
      angry, for man's anger does not bring about the   
      righteous life that God desires."  James 1:19,20  



Reply to: