ppp.8 (63508) | ppp.8 (64465) |
---|---|
1.\" $FreeBSD: head/usr.sbin/ppp/ppp.8.m4 63508 2000-07-19 10:14:00Z brian $ | 1.\" $FreeBSD: head/usr.sbin/ppp/ppp.8.m4 64465 2000-08-09 19:29:50Z brian $ |
2.Dd 20 September 1995 3.nr XX \w'\fC00' 4.Os FreeBSD 5.Dt PPP 8 6.Sh NAME 7.Nm ppp 8.Nd Point to Point Protocol (a.k.a. user-ppp) 9.Sh SYNOPSIS --- 3767 unchanged lines hidden (view full) --- 3777.Nm 3778treats the remainder of the string as a program that must be executed 3779to determine the 3780.Dq authname 3781and 3782.Dq authkey 3783values. 3784.Pp | 2.Dd 20 September 1995 3.nr XX \w'\fC00' 4.Os FreeBSD 5.Dt PPP 8 6.Sh NAME 7.Nm ppp 8.Nd Point to Point Protocol (a.k.a. user-ppp) 9.Sh SYNOPSIS --- 3767 unchanged lines hidden (view full) --- 3777.Nm 3778treats the remainder of the string as a program that must be executed 3779to determine the 3780.Dq authname 3781and 3782.Dq authkey 3783values. 3784.Pp |
3785Ignoring the | 3785If the 3786.Dq \&! 3787is doubled up 3788.Pq to Dq \&!! , 3789it is treated as a single literal |
3786.Dq \&! , | 3790.Dq \&! , |
3791otherwise, ignoring the 3792.Dq \&! , |
|
3787.Ar value 3788is parsed as a program to execute in the same was as the 3789.Dq !bg 3790command above, substituting special names in the same manner. 3791Once executed, 3792.Nm 3793will feed the program three lines of input, each terminated by a newline 3794character: --- 489 unchanged lines hidden (view full) --- 4284.Bd -literal -offset indent 4285set dial "... ATDT\\\\T CONNECT" 4286.Ed 4287.Pp 4288It is also possible to execute external commands from the chat script. 4289To do this, the first character of the expect or send string is an 4290exclamation mark 4291.Pq Dq \&! . | 3793.Ar value 3794is parsed as a program to execute in the same was as the 3795.Dq !bg 3796command above, substituting special names in the same manner. 3797Once executed, 3798.Nm 3799will feed the program three lines of input, each terminated by a newline 3800character: --- 489 unchanged lines hidden (view full) --- 4290.Bd -literal -offset indent 4291set dial "... ATDT\\\\T CONNECT" 4292.Ed 4293.Pp 4294It is also possible to execute external commands from the chat script. 4295To do this, the first character of the expect or send string is an 4296exclamation mark 4297.Pq Dq \&! . |
4298If a literal exclaimation mark is required, double it up to 4299.Dq \&!! 4300and it will be treated as a single literal 4301.Dq \&! . |
|
4292When the command is executed, standard input and standard output are 4293directed to the open device (see the 4294.Dq set device 4295command), and standard error is read by 4296.Nm 4297and substituted as the expect or send string. 4298If 4299.Nm --- 1100 unchanged lines hidden --- | 4302When the command is executed, standard input and standard output are 4303directed to the open device (see the 4304.Dq set device 4305command), and standard error is read by 4306.Nm 4307and substituted as the expect or send string. 4308If 4309.Nm --- 1100 unchanged lines hidden --- |