I would like to see a feature like "/lastlog -file <file> ...".  The
lastlog is usable for alot of things, like making URL catchers, or
catchers for other things, etc, but it seems that at the moment there's
no way to do this and avoid getting things dumped to the screen (or if
there is, it's obscure), when you only want it in a file so you can
process it with an external program.

In case my assumptions are terribly wrong and I've solved my task in the
worst possible way (I really don't know the scripting language), I'll
describe what I'm currently doing.  I've got an alias like this:

ALIAS url {
        ^SET LOGFILE IRCLOG.urlcatch
        ^LOG ON

        if (strlen($0)) {
                LAST - -literal $0
        } else {
                LAST - http
        }

        ^LOG OFF
        ^SET LOGFILE IRCLOG

        if (strlen($0)) {
                EXEC url `tail -2 IRCLOG.urlcatch|head -1|urlcatch $0`
        } else {
                EXEC url `tail -2 IRCLOG.urlcatch|head -1|urlcatch http`
        }

        #EXEC rm -f IRCLOG.urlcatch
}

This, whenever I type "/url", sends the last URL in the lastlog to the
external program "url", which sends it over the network to my Windows
box, where a daemon automagically launches IE on it.  The problem is, as
you can see, that I have to watch all of it when I only want it in the
file.

If there's a better way to solve this, I'd love to hear it, thanks!

-- 
Stian Sletner
_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to