From owner-freebsd-questions Sat May 2 06:53:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24052 for freebsd-questions-outgoing; Sat, 2 May 1998 06:53:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24010 for ; Sat, 2 May 1998 06:53:18 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id OAA20665; Sat, 2 May 1998 14:43:18 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199805021343.OAA20665@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: George Vagner cc: Brian Somers , questions@FreeBSD.ORG Subject: Re: commands In-reply-to: Your message of "Fri, 01 May 1998 19:22:54 CDT." <199805020022.TAA11336@epcot.spdc.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 May 1998 14:43:17 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > At 11:16 PM 5/1/98 +0100, you wrote: > >> where can I learn about those neet commands on the "set login" line? > >> > >> i am still trying to figure out the "\"\ \ "\ thingy hehe.. > >> > >> thanks > > > >I think the best examples are in the man page: > > > >[.....] > > set dial chat-script > >[.....] > > For example (wrapped for readability); > > > > set login "TIMEOUT 5 \"\" \"\" login:--login: ppp \ > > word: ppp \"!sh \\\\-c \\\"echo \\\\-n label: >&2\\\"\" \ > > \"!/bin/echo in\" HELLO" > >[.....] > > > >And if you think that's confusing, take a look at the ppp.8 source: > > > >.Pp > >For example (wrapped for readability); > >.Bd -literal -offset indent > >set login "TIMEOUT 5 \\"\\" \\"\\" login:--login: ppp \e > >word: ppp \\"!sh \\\\\\\\-c \\\\\\"echo \\\\\\\\-n label: >&2\\\\\\"\\" \e > >\\"!/bin/echo in\\" HELLO" > >.Ed > > > > so how in the &^#% can a normal user configure their login without knowing > this cryptic symbolism? your telling me that anyone who wants to > log into a provider has to send a message to questions so the guru's > can debug their login script or the user has to learn the symbolisms. No I'm not, I was joking. There are ``simple'' and ``normal'' examples in the man page and in the example files. > I think there has to be an easier way, this kind of cryptic trickery > is just what turns people off about freebsd, it takes 3 phd's and 17 > techs to figure out how to log into another computer! how do you expect > "normal" people to figure this out on their own. There's only one concept there, the ``escape character''. That coupled with the knowledge of how many different layers parse the string will allow you to work it out. If you can't work that out, do it by trial and error. If you can't do that, use the examples in the example files. If you can't do that, ask someone else. If you can't do that, you probably don't know what a modem is either. > i think the "expect" program has an easier way of doing things but what do i > know i am just a user. So use the "expect" program. There's an example in the manual on how to use the "chat" program. I'm sure you can do the translation. Sorry to be a bore about this, but the objective here is functionality. I'd rather hear a complaint that "the ``\'' confuses me" instead of a complain that "It's *impossible* to do this with your chat implementation". If you want to take the functionality away, edit the source. That's what it's there for. If you want to front-end it to make it pretend to be more simple, submit patches etc to freebsd-bugs. Otherwise, read the manual page and if I've omitted a good explanation, send me patches. > Laszlo Vagner > Texas Instruments > Email:kf7nn@ti.com > FreeBSD The OS of choice. > http://mutsgo.dyn.ml.org > telnet://mutsgo.dyn.ml.org > Pg. 598-5217 > Wk. 995-4297 > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message