Yozo Nitta writes:
> James-san,
> 
>  >> Q2. They want to issue TA command after port is actually opened,
>  >> but is there any way to do it via script like chat script?
>  >
>  > Yes, there are at least two ways to do that, and they're described in
>  > the pppd(1M) man page.
> 
> If it's possible to do it via chat script, please let us know how they
> need to describe it. If it's not supported way, it's OK.

Yes, it's possible to do with a chat script.

The scripts that pppd invokes are general-purpose programs.  You can
run _anything_ there that can communicate with standard I/O, such as a
Perl, Python, or shell script, or a compiled program.  When pppd
invokes such a script, standard input and output are connected
directly to the serial port.

To simplify things in the case of "simple" line-oriented
communication, the PPP package includes the chat(1M) program, which
has its own man page.  The /usr/bin/chat program uses expect-send
pairs and is usually used with pppd like this:

        connect "chat '' 'AT&F1' OK ATDT5551212 CONNECT '\c'"

That says:

  ''            expect nothing (i.e., send without waiting)
  'AT&F1'       send this string to initialize a USR modem
  OK            wait for the modem to send back an "OK" string
  ATDT5551212   dial this number
  CONNECT       wait for the modem to say "CONNECT"
  '\c'          send nothing

In addition to the existing man pages, there are a wide number of web
sites that describe the operation of pppd and chat.  These are the
same programs as found on Linux, so the instructions are mostly
generic and readily available.  www.google.com will be helpful in
finding those sites.

We also have a Sun-written document that describes configuration for
various scenarios, which you can find in the System Administration
Guide: Network Services on docs.sun.com.

Since the customer hasn't actually described what he's trying to do in
sufficient detail, it's impossible to provide detailed instructions on
how to accomplish it, other than to say, "please read the
documentation."

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to