Categories
Archives
- January 2012
- December 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- December 2010
- November 2010
- August 2010
- January 2010
- December 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
Category Archives: HowTo
UNIX: How to Automate SSH Login
Yesterday, I was working on some shell script piece for my project and I came across a situation where I have to copy some files from one server to another using ‘scp’ command and also some time have to execute … Continue reading
Count lines of multiple similar files in unix
In continuation to my earlier post regarding concatenation similar files into one. I am writing this post to demonstrate counting lines of similar kind of files in a given directory and sub-directory. Below command will find all the logs with … Continue reading
Concatenate/merge/join Multiple Text Files in Windows
Last night I got many log files from 8 different servers, all the servers have date wise log files. I separated out similar logs and kept in a folder, now as per requirement team needs the one type of log … Continue reading
How to read Blue Dump’s (BSOD) Minidump file
From couple of weeks in my brother’s machine he was getting Blue Dump screen with message “DRIVER_IRQL_NOT_LESS_OR_EQUAL”. Today to investigate I asked him to pass me the minidump files. Minidump are file that windows write for debugging purpose at below … Continue reading
How To get ServletContext inside Filter
I was coding last night and I have to get some information from Manifest file in filters. In order to read the Manifest I need the ServletContext. Using below code you can get the ServletContext inside Filter. public class SomeFilter … Continue reading
Posted in HowTo, Java
Leave a comment
Java Return Value to Unix Shell Script
Today I faced a situation where I need to verify something though Java class in database . My problem was I have to do this inside unix shell script. I created the below solution to achieve that, I am posting … Continue reading
Posted in HowTo, Java, unix
Leave a comment
How to send an email from UNIX using mailx.
#!/bin/sh # # Purpose: Demonstrate how to send an email from UNIX using mailx. ############################################################ # Example 1 – Simple: echo “This is the body.”| mailx -s “mailx Test1″ sample@sample.com # Example 2 – Using Variables: SUBJECT=”mailx Test2″ EMAIL_ADDRESS=”sample@sample.com“ BODY=”This … Continue reading
Posted in HowTo, unix
Leave a comment
When we need HttpSessionBindingListener?
The HttpSessionBindingListener interface is implemented when an object needs to be notified if it's being bound to a session or unbound from a session. Objects implement this interface so that they can be notified when they are being bound or … Continue reading
Posted in HowTo, Java
Leave a comment
Delete .svn directories recursively
I am here showing an example of a unix command, which recursively deletes subversion .svn folders. Subversion is a widely used open-source revision control application. Every copy of source code received from subversion repository has .svn folders, which store metadata. … Continue reading
Posted in HowTo, unix
Leave a comment
SVN Cleanup fails – how to resume
Today I was trying to cleanup a project, I got error. I tried deleting the log file in the .svn directory and I also deleted the offending file in .svn/props-base then did the cleanup. It works and I resumed my … Continue reading
Posted in HowTo, Troubleshoot
Leave a comment