Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix,net.unix-wizards Subject: Re: unix system enhancements Message-ID: <3718@umcp-cs.UUCP> Date: Mon, 6-Oct-86 22:14:17 EDT Article-I.D.: umcp-cs.3718 Posted: Mon Oct 6 22:14:17 1986 Date-Received: Wed, 8-Oct-86 07:06:39 EDT References: <4119@brl-smoke.ARPA> <3714@umcp-cs.UUCP> Reply-To: chris@umcp-cs.UUCP (Chris Torek) Organization: University of Maryland, Dept. of Computer Sci. Lines: 20 Xref: mnetor net.unix:5818 net.unix-wizards:8172 Whoops! In article <3714@umcp-cs.UUCP> I wrote: > # dcuug (D.C. Unix User's Group) login script > if > echo \^`tty`$ | grep -s -f /etc/restrict/dialups > then ... This, of course, does not work, since `-f' is an `fgrep' option, not a `grep' option. I did some surgery on the dcuug script, for I had noticed that it was rather wrong. Naturally, I did not test the result. This (also untested) should work rather better: if grep -s \^`tty`$ /etc/restrict/dialups; then ... -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu