Bit support in Java (32 or 64 bit)

I came across a task to find out the bit support level in the installed java. This has to be done from the command line and the solution has to be unique across Solaris and Linux. I presumed it to be an easy problem, however it is not so. Below describes the different solution that I tried and the problems I faced in those
Continue reading

Solaris killing process in bulk

[Update: 26-Nov-2010]: Commands pgrep and pkill do exactly the same in a more easier way. Refer here

Some times I am forced to kill a process due to various reasons. Most of the times, it won’t be a single process, it will be a group of process with the same name. Say like you want to kill all the java process running on your system. The nasty way is to check all the process Id of the java process, using ‘ps –ef | grep java’ then doing kill -9 <process ID>, for each process (if there is no parent process). Continue reading

Command to remove ^M characters

 

                This blog entry is for those who are frustrated by removing ^M (Control M) characters. Usually ^M character will appear in the end of each ASCII file that is transferred from DOS to *NIX based system. Have a look at http://ccrma-www.stanford.edu/~craig/utility/flip/ to know the reason for the same. Continue reading