[TF] Dumb trigger question, please help
Brought to you by:
kenkeys
|
From: matt at lazycat.o. (M. Robinson) - 2003-04-09 00:45:29
|
I scoured the mailing list archive for answers and it doesn't look like someone's asked this before.. Currently I log all my sessions to files named after the month and the world-name (i.e., 2003-Apr-worldname.log ) but really all I want to log is lines with URLs and email addresses. Thing is, I really have no idea how to do this. I gathered from the help files that /log can't be used on pattern-text, but I found /writefile in textutil.tf .. so I jumped into the deep end with: /require textutil.tf /def -mregexp -t"([^ ]+@|(f|ht)tp://)[^\. ]+(\.[^\. ]+)+" catchurl = /echo -e %P0 %| /writefile -a /usr/home/makali/tfurls.txt ... which does absolutely nothing. Fearing that my scary regexp was somehow false, I tried: /def -t"http://" catchweb = /writefile -a /usr/home/makali/tfurls.txt But that doesn't work either. Actually, /catchurl works and dumps all further input into the file if I run it manually (how do I escape out of that, by the way? I'm doing Ctrl-C, T at the moment), but it's not being triggered by any email addresses, etc. I'm guessing I just haven't figured out /def properly? I'm at my wits end. Please enlighten me. Yours, -- Matt |