[REBOL] [REBOL.org] Recent changes
From: rebol::rebol::org at: 23-Feb-2005 9:00
[REBOL] [REBOL.org] Recent changes
This is an automatic email from REBOL.org, the REBOL Script Library to notify you of
recent changes to the Library.
=======changes=======
dig.r
--change: new script
--title: DNS protocol
--owners: vdemong
--author: VDemong
--purpose: REBOL DIG : Implementation of DNS protocol (RFC 1035)
URL is dig://name-server/TYPE/name
ans: read dig://ns.thomething.com/SOA/thomething.com
ans: read dig://172.30.1.1/PTR/194.252.19.3
ans: read dig::/172.30.1.1/A/noway.myhome.com
you can see a list of available TYPEs in cmd-list in beginning of code
use ans/to-str to obtain readable answer:
>> do %dig.r
Script: "DNS protocol" (19-Feb-2005)
dig protocol loaded
>> ans: read dig://ns.libertysurf.net/SOA/tiscali.fr
connecting to: ns.libertysurf.net
>> print ans/to-str
;; REQUEST: SOA(6) for tiscali.fr
;; id: 7724 AA: 1 RD: 1 RA: 0 ANSWER(s): 1 AUTHORITY(s): 2 ADDITIONAL(s): 2
;; ANSWER(s):
tiscali.fr. 1800 SOA ns.libertysurf.net. admin-dns.libertysurf.net. 2005021701
1800 900 1209600 1800
;; AUTHORITY(s)
tiscali.fr. 604800 NS ns.libertysurf.net.
tiscali.fr. 604800 NS ns2.libertysurf.net.
;; ADDITIONAL(s)
ns.libertysurf.net. 1800 A 213.36.80.2
ns2.libertysurf.net. 1800 A 213.36.80.4
>>
If you want to extract yourself information look at the structure of objects question,answer,resource
and (xxx)-data in code
--url:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=dig.r
emit-rss.r
--change: updated script -- Changed 'escape-rule; Added required email to 'item/author;
Changed 'item/content to 'item/description
--title: Emit RSS
--owners: chrisrg
--author: Christopher Ross-Gill
--purpose: Create an RSS Feed from a REBOL Block.
--url:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=emit-rss.r
klipper.r
--change: new script
--change: updated script
--title: clipboard handler
--owners: piotrgapinsk
--author: Piotr Gapinski
--purpose: Share clipboard between Linux/KDE klipper and Rebol
--url:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=klipper.r
snmp.r
--change: new script
--title: SNMP v1 protocol
--owners: vdemong
--author: VDemong
--purpose: Implementation of SNMP v1 scheme (RFC 1155,1156,1157) , no TRAP.
URL is snmp://[community@]<host adr>/CMD/<id values>
default community is public
Where CMD is get getnext or set
id values is a string like that: "1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.5.0"
Return an object:
make object! [
version: 0
community: "public"
request-id: 1122
error-status: 0
error-message: "NoError"
error-index: 0
values: [[#1.3.6.1.2.1.1.1.0 {Hardware: x86 Family 5 Model 8 Stepping 12 AT/AT COMP
ATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)}] [#1.3.6.1.
2.1.1.5.0 "BOGOMILE"]]
]
samples:
p: open snmp://
[public--127--0--0--1]/GET/
insert p "1.3.6.1.2.1.1.5.0"
rep1: copy p
close p
rep2: read join snmp://
[public--127--0--0--1]/GET/ "1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.5.0";
rep5: read join snmp://
[public--127--0--0--1]/GETnext/1.3.6.1.2.1.4.21.1.1.0
adr: 172.16.1.1
while [ adr <> 172.16.1.254 ] [
error? try [
rep: read to-url rejoin [ "snmp://" adr "/GET/1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.5.0" ]
print [ "At " adr " find: " second first rep/values " : " second second rep/values
]
]
adr: adr + 0.0.0.1
]
--url:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=snmp.r
=======additional information=======
new and updated scripts:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/search.r?special-filter=recent
=======end=======
--The Library People
--23-Feb-2005