Date: Sun, 13 Jul 1997 02:11:15 +0100 From: Brian Somers <brian@awfulhak.org> To: "Stan Brown" <stanb@netcom.com> Cc: freebsd-questions@freebsd.com (Free BSD Questions list) Subject: Re: Still trying to invoke a script on ijppp linkup Message-ID: <199707130111.CAA14212@awfulhak.org> In-Reply-To: Your message of "Sat, 12 Jul 1997 15:14:32 EDT." <199707121914.MAA04801@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> I am still thashing around with trying to execute an arbitray shell > script when ijppp links up to my ISP. Acording to the man page for the > vesrion found at http://www.freebsd.org/~brian/. I should be able to > use the "shell" keyword, So i put the following in /etc/ppp/ppp.linkup > > shell "echo HISADDR > /tmp/addr" This will attempt to execute a program called "echo HISADDR > /tmp/addr" - not really what you're looking for ;-) You really want: shell sh -c "echo HISADDR > /tmp/addr" [.....] > -- > Stan Brown stanb@netcom.com 404-996-6955 > Factory Automation Systems > Atlanta Ga. > -- > Look, look, see Windows 95. Buy, lemmings, buy! > Pay no attention to that cliff ahead... Henry Spencer > (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. -- Brian <brian@awfulhak.org>, <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707130111.CAA14212>