06-25-2017, 14:03 +0200
AuthorPost
thommey  09-07-2010, 01:53   | [EGG/TCL] tail -f in the background Jabber
(Administrator)
Member since 03/2004
62 Posts
                                                                                                                              
1
2
3
4
set f [open "|tail -f /var/log/messages"]
fconfigure $f -blocking 0 -buffering line
fileevent $f readable [list foo $f]
proc foo {f} {puthelp "privmsg #chan :[gets $f]"}

(probably from demond on the egghelp.org forum)
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen