Loading...
 

TikiWikiModuleTail

That module was really fast to write. It reads an indicated number of lines from the end of an indicated file. That file has to be readable py apache user obviously. It uses the file() php function, and no exec().


It's a module with parameters, they are indicated like for plugins, with a line of key=>value separated by commas (and alternatively by carriage return, very useful for display sake).

I used that module to display the tail -f of the logfile of my user on irc on TikiWikiDev (actually I use bitchx with log function in a screen on my remote server). So the only filter avalaible for now is an irc parser (filter=>irc) and an apache errors parser (filter=>apache_errorlog).

How to use it with the Module-Plugin

Using the module in a Wiki-page
MODULE(
module=>tail,
align=>right,
filter=>irc,
file=>tails/tikiwiki.irc,
title=>irc.freenode.net #tikiwiki,
max=>12
)}
{MODULE}


(note : it's okay to split module or plugin arguments on multiple lines)


Page last modified on Tuesday 13 September 2005 14:52:50 GMT-0000

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.