home *** CD-ROM | disk | FTP | other *** search
- ;*** Use this example script to start your dynamic PPP Internet
- ;*** connection so you can keep the original Startnet script intact
- ;***
- ;*** Utilisez ce script exemple pour démarrer votre connection
- ;*** Internet PPP dynamique, vous garderez ainsi le script original
- ;*** Startnet intact.
- ;***
- ;*** NEEDED: AmiTCP/IP 4.0 or up (Aminet:comm/tcp/AmiTCP_demo_40.lha)
- ;*** PPP 1.30 or up (Aminet:comm/net/PPP1_30.lha)
- ;*** Serline (included)
- ;*** USEFULL: Online-o-Meter (Aminet:comm/misc/Online1_4.lha)
- ;*** PhoneBill (Aminet:comm/misc/pbill33d.lha)
- ;*** socket.library (available from Thor Home pages)
- ;***
- ;*** note: lines begining with ';' are comments ;)
- ;***
-
- if NOT exists env:IPMODEMPORT
- setenv IPMODEMPORT "serial.device 0"
- ; ^^^^^^^^^^^^^ ^
- ; edit this if you use another device or another port
- ; éditez ceci si vous utilisez un autre device ou port
- endif
-
-
- rx 'if show("P","AMITCP") then return 5' ; *** is AmiTCP running ?
- if warn
- echo "AmiTCP is already running !"
- quit
- endif
-
- startnet ; *** start AmiTCP
-
- serline "!" $IPMODEMPORT ; *** check Carrier
-
- if $rc EQ 0 ; *** if Carrier is present...
-
-
- ; *** Start Online-o-meter if exists and not yet running ***
- ; *** (edit the full path to OnlineMeter & Online.prefs) ***
- ; *** ***
- ; *** Démarre Online-o-meter s'il existe et n'est pas ***
- ; *** déjà lancé. ***
- ; *** (éditez le chemin vers OnlineMeter & Online.prefs) ***
- ;
- IF EXISTS Work:Comms/Online-o-Meter/OnlineMeter
- ; ^^^^^^^^^^^^^^^^^^^^^^^^^^
- IF `rx "say show('P','OnlineREXX')"` EQ 0
- run <>NIL: Work:Comms/Online-o-Meter/OnlineMeter x 280
- ; ^^^^^^^^^^^^^^^^^^^^^^^^^^
- WaitForPort OnlineREXX
- ENDIF
-
- ; *** Set OnlineMeter calling zone ***
- ;
- rx "address 'OnlineREXX'; readprefs 'Work:Data/Comms/OnlineConfig/Online.prefs'"
- ; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- rx "address 'OnlineREXX'; setcomment 'Ping (362030)'"
- ; ^^^^ ^^^^^^
- ; set your POP's name&phone number
- ; ajustez le nom et le numéro de téléphone
- ; de votre fournisseur d'accès.
-
- ; *** Start Online-o-meter timming ***
- ;
- rx "address 'OnlineREXX'; start 1"
-
- ENDIF
-
-
- ; *** If your IAP support proxy server, ***
- ; *** set some of these environment variable ***
- ; *** for use with AMosaic. ***
- ; *** ***
- ; *** Si votre fournisseur supporte le cache ***
- ; *** proxy, déclare les variables ENV pour ***
- ; *** une utilisation avec AMosaic. ***
- ;
- ;setenv WWW_http_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- setenv http_proxy "http://proxy.ping.be:8080/"
- ;setenv WWW_file_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ;setenv WWW_ftp_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ;setenv WWW_gopher_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ;setenv WWW_news_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ;setenv WWW_telnet_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ;setenv WWW_wais_GATEWAY "xxxxxxxxxxxxxxxxxxxxxxxxxx"
- ; ^^^^^^^^^^^^^^^^^^^^^^^^^^
- ; of course, edit THIS to Your proxy server
-
-
- ; *** The following is needed by some client (eg: ConnectThor) ***
- ; *** ***
- ; *** Les lignes suivantes sont nécessaires pour certains ***
- ; *** clients (ex: ConnectThor) ***
- ;
- IF EXISTS AmiTCP:libs/socket.library
- if NOT exists env:SOCKETCONFIG
- setenv SOCKETCONFIG "UID=200 GID=100 USER=MyUserID DOMAIN=ping.be UMASK=022"
- ; ^^^^^^^^ ^^^^^^^
- ; edit this
- endif
- LOADLIB AmiTCP:libs/socket.library
- ENDIF
-
- endif
-