Thursday, February 21, 2008

cat and grep to omit some unwanted pattern on log file

The app I am debugging is toiled by some crappy domain redirecting output. I was looking for a way clear the catalina out file with some decent message. There is nice tutorial logTail Tutorial tailing the log. For there is a part where pattern omition is there,which worked quite well for me.

cat /usr/local/tomcat/logs/catalina.out | grep -v testing | grep -v url | grep -v
Redirecting This will omit the lines starting with testing Redirecting and url

Monday, February 11, 2008

Trendnet WiFI fiasco

When I moved my home I want to setup the wireless hookup in the new home. I was trying to get into the admin console with admin ip 192.168.1.10. For my surprise i am no way able to get in. After searching for while I found out Linksys router my neighbor have the same ip for its router console. I enabled my wifi connection alone and gone to admin console and renamed the router name. after setting up my wep and all I am still not able to get the wireless traffic comming to my computers. Again fiddling around the admin console I found some reason I am not able to release old DHCP address. This is how i released the DHCP. Swithched off the wireless router unplugged the Ethernet. Switched off the cable modem even the power, waited for 10 min. Plugged in the Cable modem powered the modem,waited for all the lights to come in, after three minutes plugged in the Router and powered in the router. At this point connected my router profile on the computer. Aha.. at last I am able to get the wifi. cool.