Arexx help needed.
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    Well I am currently modifiying my good old A4k to become a small rexx server (n new idea, i know anyway, it is fun )
    To have at least something useful on it (beside all the little toys ;-) ) I thought it might be a good idea to include a rss newsreader which displays news from amiga-news.de and morphos-news.de
    Well the script works, unfortunatelly it "fails" when it has special characters like ä ö ü ß included. They need to be converted, but i have no idea how?
    here is the script:
    /* #! sys:rexxc/rx **/
    /* $VER: Clarissa Newsticker 1.0 (26.06.04)*/


    address command 'c:httpresume >nil: URL http://www.amiga-news.de/de/backends/news/index.rss OF ram:ande OVERWRITE'



    if Open(in,"ram:ande",read) then do

    rssfeed = ReadLn(in)

    do while (~eof(in))

    parse var rssfeed "<title>" text "</title>"

    if text ~= "" then

    title = text

    parse var rssfeed "<link>" text "</link>"

    if text ~= "" then

    link = text

    if index(rssfeed,"</item>") > 0 then do

    say '<BR>'

    say '<IMG src="pics/aosk.png" alt="aosk.png" width="16" height="15"><A HREF="'link'">' title '</A>'


    end

    rssfeed = ReadLn(in)

    end

    say '<BR>'

    call Close(in)

    end

    Any idea how this could be done?

    Another thing is, i thought it would be also cool to have the dnet stats from peg and Amiga displayed online. I found a loganalyzer package on aminet which should actually do exact that what i need, analyze the logfiles and make a nice html page. unfortunatelly it seems to be broken ( I guess there where several changes in the dnetc logfile structure) so perhaps anyone can help to make it "working" again?
  • »27.06.04 - 14:25
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    robin:
    Well i had allready a look into it, but i guess my arexx skills are near zero ;-) (Actually i can`t do much more then open other progs and remote them etc) I guess it shouldn`t be that hard to search and replace strings in a textfile, but.. well as i said, no idea :-(
  • »27.06.04 - 15:00
    Profile