Run X applications with bsub

You can start an X session on the least loaded host by submitting it as a batch job:
bsub xterm

An xterm is started on the least loaded host in the cluster.

When you run X applications using lsrun or bsub, the environment variable DISPLAY is handled properly for you. It behaves as if you were running the X application on the local machine.