This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

parse tail output?

Old posts that have not been replied to for several years.
Locked
d
difoo
Voice
Posts: 33
Joined: Sat Jul 03, 2004 9:56 am

parse tail output?

Post by difoo »

Hey, is it possible to let an eggdrop parse the output of a tail -f <file> ?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

yes i think there is a lib to do so check tcllibs
XplaiN but think of me as stupid
d
difoo
Voice
Posts: 33
Joined: Sat Jul 03, 2004 9:56 am

Post by difoo »

I can't find anything to make this possible. The bot always freezes/locks. :-(

Anyone knows how to do this? I wan't the bot to announce httpd.log access entries in a private channel.
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

should be no problem if you work with |open and a fileevent

i would present a sample script in here but my servers HD crashed (again) and all my scripts are lost, but you should be able to find something with the forums search feature.
d
difoo
Voice
Posts: 33
Joined: Sat Jul 03, 2004 9:56 am

Post by difoo »

Well GOS, I could not find anything :(

Can you give me an example anyhow? I searched half the day, but no real solution for this.

-difoo
Locked