[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Tuesday 29 June 2004 12:58, Peter Walker wrote:
Neil Williams wrote:When you've got a bash script or perl script running in bash that produces reams of output (e.g. if you logged it all to a file it would be 30k per run) is there any way of adapting the script to produce certain sections in colour?The short answer is yes :-)e.g. critical error reports in red, success in green, warnings in magenta or cyan.I would have thought that the colourising(?) method would depend on how you are viewing the log file.
Sorry, I should have been clearer - it isn't in a log file, it's coming to the screen direct. It's a script that looks for bad servers, so it hangs a lot. I can't output to a log file because I'd never know when it's hung. There are programs that will colourize logs files saved on disk, what I'm looking for is a method of getting bash to print in colour WITHOUT going to file. -- Neil Williams ============= http://www.codehelp.co.uk/ http://www.dclug.org.uk/ http://www.isbn.org.uk/ http://sourceforge.net/projects/isbnsearch/ http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
Attachment:
pgp00027.pgp
Description: signature