Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 1999 08:44:46 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        James Westbrooks <james@blue.external.org>
Cc:        questions@FreeBSD.org
Subject:   Re: PPP.LINKUP 
Message-ID:  <199909100744.IAA37815@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Wed, 08 Sep 1999 20:23:58 CDT." <199909090124.UAA07513@blue.external.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm trying to set up up a static name with a dynamic IP by mailing a 
> friend with a static IP and name.  I've got the following command in
> my ppp.linkup file:
>  !bg echo MYADDR | mail dyndns@blah.blah
> 
> The intent is to mail my current IP to him every time ppp connects (I use 
> ppp -ddial), but it isn't sending anything.  I'm at a loss to know
> if it isn't the proper command or if the ppp.linkup isn't running.
> 
> Any suggestions most appreciated!

!bg doesn't use sh.  You should use

  !bg sh -c "echo MYADDR | mail dyndns@blah.blah"

> -James

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909100744.IAA37815>