ps equivalent command in Windows or DOS 
How to see pid of a running process in Windows like in Unix (ps -eaf )?
 Just launch the task manager and go to processes tab and you should be able to see Image name followed by PID. If you are not able to see PID column here you may need to add it from Menu (View) -> Select Columns and then select PID(Process Identifier) .
Windows Command to see which port is being blocked by which PID ?
netstat -anb
Many users face trouble in tracing the process id of a process when comes to windows / DOS . Basically DOS is not multi tasking OS. It just maintains only process under which sub processes will be running. So Windows server versions we have got one similar command to show the process id of a likely process.
ex : ps -eaf | grep java
the above command in Unix will give all the java processes and their PIDs so similar command but not exact in windows (Server versions) would be the following

tasklist /v | find "java"
So if you want to run this command on other types of windows flavors like Windows XP it may not work so to make it work you may need to install 2003 Source kit.as it needs framedyn.dll
P.S : Generally the best practice I follow is I will install tool called Cygwin on windows machines which gives a command prompt to allow us to run all possible Unix commands in windows itself.


The following shell script main aim is to merge two files line by line and delete the repeated word or duplicate word from each line.

file 1 :
apple goa orange
hello hi how are you
file 2 :
mango goa orange apple
how are you hi hello
Final out put required is :
apple goa orange mango

hello hi how are you
Screen outputs :
nc041031:/opt/krish # cat 1.txt
apple goa orange
hello hi how are you
nc041031:/opt/krish # cat 2.txt
mango goa orange apple
how are you hi hello
nc041031:/opt/krish # cat merge.sh
#!/bin/sh

awk 'NR==FNR{a[FNR]=$0;next} {print a[FNR],$0}' 1.txt 2.txt | tee a.txt
awk '{ while(++i<=NF) printf (!a[$i]++) ? $i FS : ""; i=split("",a); print "" }' a.txt | tee final.txt

nc041031:/opt/krish # ./merge.sh
apple goa orange mango goa orange apple
hello hi how are you  how are you hi hello
apple goa orange mango
hello hi how are you
nc041031:/opt/krish # cat final.txt
apple goa orange mango
hello hi how are you

A node is a logical grouping of managed servers.A node usually corresponds to a logical or physical computer system with a distinct IP host address. Where as a Cell is logical grouping of multiple nodes.
Cell profile : Use the cell profile to make applications available to the Internet or to an intranet under the management of the deployment manager.
Creation of a cell profile generates a deployment manager profile and a federated node profile in one iteration through the Profile Management tool. The result is a fully functional cell on a given system.

Important Terms in WAS

Cell : Represents a logical grouping of multiple nodes for administrative purposes.
Node : Represents a physical system running one or more WebSphere servers.
Server : Represents an instance of a Java™ virtual machine (JVM).
Cluster : Represents a logical grouping of multiple application servers within a cell for administration, application deployment, load balancing, and failover purposes.
Federation :The process of joining a stand-alone WebSphere node to a WebSphere cell.
Picture to visualize the things :

References : [1][2][3][4]

Is this blog helpful to Internet users ?

Help fight poverty in India!!

Two clicks a day .. keeps poverty away ..."Your mouse click may be a meal for at least one poor child"

See the statistics of population Vs Poverty in India...

-Krishna babu G

Tynt