irssi save buffer

  02:39:00 pm, by The Dreamer   , 532 words  
Categories: Software, Computer, Networking

irssi save buffer

Recently, I've been having problems with an irssi script, so I turned on debugging (and later added some more debugging around the problem spot) with the output going to another window.

The problem is that tracking when did the problem occur....why...and how to deal with it. And, later what happens if I just ignore it.

Anyways...the problem is I'm not watching the output constantly, so hours may have gone by before I notice
that the problem had occurred.

I suppose I could've customized the debug output to focus in on where I suspected the problem to be, but I didn't want to make that big of change to it.

I have auto_log on...but that only logs channel/query windows....so not the window that the debug output is going to. Hmm, just noticed that channel/query logging includes twirssi....guess I found another way to search my twitter history :.

So, I had mainly been searching around "irssi search window".... "search" turns out to be one of those annoying terms to use in a search. And, "window" isn't really that much better. Good thing, the word "home" was not something relevant to this search.

Wasn't until I started other terms with irssi that I found something that would fulfill my needs. Save wasn't something I had thought of, though I had tried looking for how to log this window where auto_log wasn't. But, I guess I wasn't coming up with the right terms to narrow in on it. Or that I'm using Bing instead of Google.

Eventually, I found this: irssi, logging a chat w/o logging enabled

2006-08-29 10:00:09

Yea, sorry, couldn't find a better title. :p

This is probably the shortest howto in this forum so here it goes.

Last night I had a conversation with someone. I usually IRC from a remote box so I don't log anything because, well, I'm paranoid.

Thing is that when I woke up this morning I really wanted to have the conversation saved on my drive. So, if you're lazy like me and don't feel like scrolling back, copying and pasting as you go, here's what I did:

First, you enable logging on the window you want to save the buffer from.

Code

/window log on

And then you use /lastlog to scroll the entire contents of the buffer from give window.

Code

/lastlog

Note that if the buffer is bigger than 1000 lines you'll need to use /lastlog with the '-force' option like so:

Code

/lastlog -force

Now that we've first enabled logging on this window, all the output from the lastlog command will be saved to a file stored by default in your homedir.

Hope someone finds this guide useful some day. :)

P.S.: Obviously this won't work if the window you want to use this guide on has been closed. :p

Years later, somebody posts at 2011-05-14 05:25:22 that they search for "irssi save buffer" in Google and its the 5th hit... So, I tried the search in Bing, and there it is....the 5th hit, highlighting the text of from this posting. Wonder if the post would've come up in Google if somebody hadn't said what terms to use in the posting? :hmm:

Wonder what impact this note to self is going to have &#59;D

1 comment

Comment from: derkirche [Visitor]
derkirche

You can also save the messages that are in the buffer for the current channel with just:

/lastlog -file (insert filename here)

03/31/15 @ 09:38
Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 7 months 21 days 5 hours 58 minutes and 59 seconds until the end of time.
And, it has been 4 years 5 months 7 days 8 hours 3 minutes and 57 seconds since The Doctor saved us all from the end of the World!

Search

May 2017
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 10
This seal is issued to lawrencechen.net by StopTheHacker Inc.
powered by b2evolution free blog software

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime