Running an xterm with a particular command in it

Hi guys i'm trying to run an xterm with a particular command in it. I have looked at the man page of xterm and it says to do this we use following command: -e program [ arguments ...]

I want it to open the man page of the bash file.

I tried xterm [man bash] -e.

It doesnt seem to work. I must be doing it completetly wrong.

Any suggestions please?

Regards

Shyam

xterm must have an xserver to display to, otherwise it will give an error. If you do have a valid xserver, don't forget to pause the command somehow, otherwise the window will disappear again once the command completes. For example, try:

xterm -e "ls|less"