Created
December 13, 2014 11:01
-
-
Save anonymous/055a8fc90419b5beb9ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use HTML::FromANSI (); | |
open (LOG, '>>hnchatlog.html'); | |
select((select(LOG), $|=1)[0]); | |
print LOG "<body bgcolor=black>\n"; | |
while (<>) { | |
my $h = HTML::FromANSI->new(); | |
print LOG $h->ansi_to_html($_), "\n"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] | tee >(perl loghn.pl) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment