Re: Fetchmail + cron + dialup

From: Kevin Mark (kmark+debian-user_at_pipeline.com)
Date: 09/30/04

  • Next message: Ognjen: "windows locks up while accessing samba shares"
    Date: Thu, 30 Sep 2004 14:49:28 -0400
    To: debian-user@lists.debian.org
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Thu, Sep 30, 2004 at 12:57:00PM +0200, Robert Golovniov wrote:
    > Hello,
    >
    > What is the best way to configure fetchmail to regularly check for new
    > mail on a dialup account? I tried doing it with a simple cron job like
    > "pon && fetchmail && poff" but the last command for some reasons never
    > worked. I also tried running pppd in "on-demand" mode, but somehow this
    > did not work either. Is there a "normal" or "professional" way of doing
    > it? Many thanks!
    >
    > --
    > -=Robert & Beata Golovniov | Lviv. Topolna-West=-
    Hi Rob,
    I have a small script that checks the machine in online before it runs
    fetchmail. So the cron jobs runs constantly but fechmail only runs when
    on line.
     #-------------------------------------------------------------------
     IP=$(/sbin/ifconfig ppp0 2>&1 |grep inet|cut -f2 -d:|cut -d' ' -f1)
     if [ $IP ]; then
             # online
            fetchmail
     fi
     #------------------------------------------------------------------
     -kev
    - --

            (__)
            (oo)
      /------\/
     / | ||
    * /\---/\
       ~~ ~~
    ...."Have you mooed today?"...
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBXFU4AWAAuqdWA9cRAlmJAKCJAYa5pfye3ZNhXZ6CBqCLzEzAYACdGYsn
    iNeDWjl+Tqc24PvcrWe361U=
    =U7CC
    -----END PGP SIGNATURE-----

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Ognjen: "windows locks up while accessing samba shares"

    Relevant Pages

    • Fetchmail + cron + dialup
      ... What is the best way to configure fetchmail to regularly check for new ... mail on a dialup account? ... I tried doing it with a simple cron job like ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: Auto-starting fetchmail on startup
      ... > Can you tell me how to setup te cron job to start upon boot up? ... >>>currently setup to boot into the text mode, ... >>>fetchmail to run no matter it is started in text or graphic mode. ...
      (comp.os.linux.setup)
    • Re: fetchmail bounces
      ... Stephen Kuhn wrote: ... >>mail server. ... The cron job simply runs fetchmail as my edward user. ...
      (RedHat)
    • Re: Auto-starting fetchmail on startup
      ... Can you tell me how to setup te cron job to start upon boot up? ... >>fetchmail to run no matter it is started in text or graphic mode. ...
      (comp.os.linux.setup)
    • Re: Browser mode and new emails
      ... You bring down your mail with fetchmail, which calls procmail. ... With a cron job or in daemon mode. ...
      (comp.mail.mutt)