Move first in to OpenFOAM directory
cd $WRKDIR/OpenFOAM/$USER-1.7.1/run
Copy the directory of the cavity flow tutorial input files in to the run directory
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
and move in to the case directory
cd cavity
Create the mesh by giving the command
blockMesh
and run the solution
icoFoam
The results are created in to the directories named as 0.*, and can be post processed for example with paraFoam (OpenFOAM version of paraView).