OK. At last, success.
This is the only thing that is working, 100% to my satisfaction.
nohup less +F /var/log/Server.log | /usr/local/src/Colorlogs/colorlogs.pl > takethis.log &
less +F -f -R takethis.log
This works wonderfully.
Only downside is the duplication of the log files, but this can...
I am rushing now to test this (thought about this yesterday too).
Will update about the results,
One thing, though, It is less +F if you want to "tail" a file while it is being updated. Hope this works as well.
Thanks a lot for your effort, man.
Thanks for your replies,currently you are the only one across 5 forums who answered anything....
But, the problem is the less has its own control over input and output. Unlike tail, for example, when you break (control-c), you get to a prompt. This calls for formally "telling" less to relay its...
This works for me as well, probably redirecting the output to a file loses the escape sequences and this is not directly related to less. But, my problem remains:
1. How can I use less +F and pipe it somehow to a Perl script that colors the text? Less has its own prompt, input and output...
Hi all,
Please forgive me if you see this post in other Unix forums around the web: I just don't seem to get any answers anywhere....
A. My Environment
==============
I am using RedHat Linux, version 2.6.18-53.el5.
When I type less --version I get:
less 394
Copyright (C) 1984-2005 Mark...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.