Submit an interactive job by using a pseudo-terminal

About this task

Submission of interaction jobs using pseudo-terminal is not supported for Windows for either lsrun or bsub LSF commands.

Some applications such as vi require a pseudo-terminal in order to run correctly.

You can also submit an interactive job using a pseudo-terminal with shell mode support. This option should be specified for submitting interactive shells, or applications which redefine the CTRL-C and CTRL-Z keys (for example, jove).

Procedure

  1. Submit a batch interactive job using a pseudo-terminal.
    bsub -Ip vi myfile

    Submits a batch interactive job to edit myfile.

    When you specify the -Ip option, bsub submits a batch interactive job and creates a pseudo-terminal when the job starts.

  2. Submit a batch interactive job and create a pseudo-terminal with shell mode support.
    bsub -Is csh

    Submits a batch interactive job that starts up csh as an interactive shell.

    When you specify the -Is option, bsub submits a batch interactive job and creates a pseudo-terminal with shell mode support when the job starts.