5 Cent tip for today [ check online | offline website ]

Started by newdep, March 08, 2004, 09:23:14 AM

Previous topic - Next topic

newdep

;

; checks if a list of websites is online | offline.

;



(set 'urls '(

        "newlisp.org"

        "http://www.gnu.org">www.gnu.org"

        "wiki.tcl.tk"

        "riki.raki.ro" ))



(define (online? www)

 (if (setq checkup (net-connect www 80 ))

        (begin (net-close checkup ) "Online ") "Offline"))



(dolist (url urls) ( println (online? url) ": " url))



(exit)
-- (define? (Cornflakes))

Ryon

#1
Hey! This is handy. Thanks!
\"Give me a Kaypro 64 and a dial tone, and I can do anything!\"