home *** CD-ROM | disk | FTP | other *** search
- /* Fidolookup.welmat For use with Welmat 0.52+ and AmigaUUCP 1.13+
- *
- *
- * This script allows WELMAT to look up a phone number for a site using
- * the Traplist.Library.
- *
- * James McOrmond jam@Jammys.OCUnix.On.Ca
- * Fidonet#1:163/165.0
- */
-
-
- Options RESULTS
- Options failat 99999
-
- parse arg callsystem root
-
- say callsystem root
-
- parse var callsystem "fidonet#"system
- say "system" system
-
- myhost=address()
-
- say "Trying to look up "||system||" for '"myhost"'"
-
- temp = FindNode(system, A)
- say "'"system"'" temp
-
- parse var temp status" "zone":"net"/"node"."point","sysop","system","phone","city","pass","baud","cost","region","hub","flags
-
- if (status = 0) then Exit 1
-
- if (strip(root) == "remote") then do
-
- Address value myhost
- 'set remote.sysop "'||sysop||'" remote.sitename "'||system
-
- Address value myhost
- 'set remote.number '||phone||' remote.domain fidonet'
-
- Address value myhost
- 'set remote.cost '||cost||' remote.maxbaud '||baud
-
- Address value myhost
- 'set remote.password '||pass||' remote.zone '||zone
-
- Address value myhost
- 'set remote.net '||net||' remote.node '||node||' remote.point '||point
-
- end
- if (strip(root) == "test") then do
- Address value myhost
- 'set test.password '||pass
- end
-
- Exit 0
-
-