07.01.2013 Views

The Online World resources handbook

The Online World resources handbook

The Online World resources handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Automatic communication http://home.eunet.no/~presno/bok/16.html<br />

# "AT\N5" must be written as "AT\\N5".<br />

output at&C1&d2\\V2\\N5W1S9=12S11=50\\K3\\Q2 &S1\13<br />

# Waiting for another "OK" from the modem.<br />

input 10 OK\n<br />

# Sending autodial command and phone number to the<br />

# modem<br />

output atdt,22568862\13<br />

# Waiting for the "CONNECT" report from the modem<br />

# when a connection with the remote modem has been<br />

# set up.<br />

input 50 CONNECT<br />

# Wait until it's safe to continue sending. Some<br />

# modem's hang up if you transmit characters<br />

# during a connect set to monitor the carrier<br />

# signal detector (DCD).<br />

wait 30 dcd<br />

# Now, prod the remote terminal server by sending<br />

# a Return<br />

output \13<br />

# Wait for the username prompt ('login:').<br />

input 30 login:<br />

(QWHU \RXU XVHUQDPH ,Q WKLV H[DPSOH WKH XVHU<br />

# name is 'Presno'.<br />

output Presno\13<br />

# Wait for the password prompt<br />

input 30 sword:<br />

# Enter the secret password. In this example the<br />

# password is "secret"<br />

output secret\13<br />

# we are now logged in<br />

I use this script to dial a PPP server. When Trumpet signals "PPP ENABLED," I can<br />

open Netscape for the <strong>World</strong> Wide Web, WinVN for reading news, or Pegasus for mail.<br />

Trumpet uses a variant of this script when calling in to a Unix host to use SLiRP (or<br />

<strong>The</strong> Internet Adapter). In these applications, it waits for the host's prompt (@gaia%)<br />

before starting the SLiRP application to get PPP (or SLIP). This is achieved by adding<br />

the following commands after "# we are now logged in" above.<br />

# <strong>The</strong> @ and % characters are rather unique, so<br />

# instead of 'input 30 \64gaia\37', I just use<br />

input 50 \37<br />

# Finally, the pseudo SLIP startup command<br />

output slirp P\13<br />

input 20 SLiRP Ready ...<br />

Trumpet signals "PPP ENABLED," and I am ready to go.<br />

Auto logon with Procomm<br />

3 of 9 23.11.2009 15:49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!