hi,
i managed to have the bot parse the output of a specific file in realtime. but when i try to have him output only specific lines out of it, it only gives me errors. here's what i use:
set fileout [exec cat $file | grep -E 'sshd|kernel']
putserv "PRIVMSG $chan :$fileout"
i dont want alot of spam in my chan and only want to see lines containing sshd & kernel but all i get is:
[21:59] child process exited abnormally
while executing
"exec cat $file | grep -E 'sshd|kernel'"
the part below works like a charm, but outputs ANY line that gets written to the file i'm tailing:
set fileout [exec cat $file]
putserv "PRIVMSG $chan :$fileout"
any help on this?
difoo