* openssl dsaparam 128 -rand file Why are you using the -rand option? Unless this is a special platform, don’t do that.
* is taking long time processing the command and not producing any output. What is your hardware and software? Can you run it under a debugger, and interrupt it sometimes to see where it is?