Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!nntprelay.mathworks.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!shift.utell.net!nobody From: brian@shift.utell.net (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: ppp -> shell script problems Date: Wed, 9 Jul 1997 16:24:39 +0100 Organization: Awfulhak Ltd. Lines: 41 Message-ID: <nfa0q5.1r2.ln@shift.utell.net> References: <33C34EAC.41C67EA6@javanet.com> Reply-To: brian@awfulhak.org, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44170 In article <33C34EAC.41C67EA6@javanet.com>, Jack <harpo@javanet.com> writes: > I'm having a little more trouble than I anticipated calling a shell > script from my ppp.linkup. In essence, what I want to do is get the > value in MYADDR into a text file, say ~/data which I can then upload to > my isp shell account, so I can access this machine from the outside > world (dynamic ip). > I'm running FBSD 2.1.5 with PPP-2.2-970629 installed. > Here's the relavent line from /etc/ppp/ppp.linkup: > ! sh -c "/usr/home/jack/ipinfo MYADDR > /usr/home/jack/data &" > (This is the last line in ppp.linkup) > -- > ipinfo is very simple so far: > #!/bin/sh > echo My current IP address is $1 > --- > > I don't think sh likes the "-c" option. In fact, I didn't see it listed > under my man pages! I've tried "-x" as well, but that didn't do anything > more. > > In short, this script doesn't seem to be getting called. (~/data does > not get updated. However, if I run "./ipinfo 127.0.0.1 > data" in my > home directory, that works!" > > I'd appreciate ANY thoughts/ideas/etc. You need the 970701 archive: http://www.freebsd.org/~brian/ppp-2.2-970701.tar.gz The archives before that didn't execute shell commands in auto mode...... sorry. > TIA, > John Szumowski -- Brian <brian@awfulhak.org> <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour !