Monday, 22 July 2013

Updating xml tags in xml files

http://www.daniweb.com/software-development/shell-scripting/threads/202018/modifying-xml-files-using-sed

for f in $( find . -name "*.xml" ); do sed -n "s/<idle>600<\/idle>/<idle>900<\/idle>/p" $f >> $f; echo "file:" $f;done

Monday, 17 June 2013

in sql plus to avoid exponentialvalues like this as result: 6.0044E+11
run the command below  to avoid exponential values.

SQL>set numformat 99999999999999999999

Wednesday, 12 June 2013

Apache restart no sockets issue

# ./apachectl start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Run this command when the parent process is killed:
#killall -9 httpd

and then restart apache:
./apachectl start OR /etc/init.d/httpd2 restart



Thursday, 10 January 2013

Installation steps for libpcap

Installation steps for libpcap tcpdumps/network analysis

http://xgjonathan.blogspot.in/2011/04/how-to-install-libpcap-on-ubuntu.html