Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make your STDERR red with: stderred
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 344
Location: Salem, OR

PostPosted: Mon Dec 19, 2011 3:55 am    Post subject: make your STDERR red with: stderred Reply with quote

Had messages sent to STDERR appear red in your console. I learned of this from http://www.reddit.com/r/linux/

The project is at https://github.com/sickill/stderred

Here's my session of installing and testing stderred (it works):
Quote:
atom src # pwd
/usr/local/src
atom src # git clone git://github.com/sickill/stderred.git stderred
Cloning into stderred...
remote: Counting objects: 177, done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 177 (delta 89), reused 148 (delta 60)
Receiving objects: 100% (177/177), 22.87 KiB, done.
Resolving deltas: 100% (89/89), done.
atom src # cd stderred/
atom stderred # make lib/stderred.so
gcc stderred.c -D_GNU_SOURCE -Wall -fPIC -m32 -shared -o lib/stderred.so
atom stderred # pwd
/usr/local/src/stderred
atom stderred # export LD_PRELOAD="/usr/local/src/stderred/lib/stderred.so"
atom stderred # python -c 'import os; print "Yo!"; os.write(2, "Jola\n\r")'
Yo!
Jola
atom stderred # java lolz
Exception in thread "main" java.lang.NoClassDefFoundError: lolz
Caused by: java.lang.ClassNotFoundException: lolz
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: lolz. Program will exit.
atom stderred #
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Tue Dec 20, 2011 6:38 am    Post subject: Reply with quote

Cool.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum