Previous Page Contents Page Next Page

3.6 Running 3270 Emulation in the Background

You can run the 3270 emulation program as a background process. When you run the program as a background process, you cannot view the 3270 emulation display or use the keyboard, but you can still access 3270 display sessions using a HLLAPI application or perform host printing with printer sessions. (When the 3270 emulation program is in the background, you cannot run a command-line transfer directly. However, you can run a command-line file transfer indirectly by using a HLLAPI application to log on to the host.) Because the menu interface is inaccessible, it is disabled to save memory. For more information, see Transferring Files from the Solaris Command Prompt.

When you start the 3270 emulation program in the background, the following sessions are automatically activated:

If there are no initially active printer sessions or initially active display sessions that have a session ID assigned to them, the 3270 emulation program displays an error message and the program terminates. See Customizing Display Sessions, or Customizing Printer Sessions, for information about session IDs and initially active sessions, or Starting the 3270 Emulation Program, for information about specifying session IDs from the command line.

Before starting the 3270 emulation program in the background, make sure the following conditions are true:

Contact your System Administrator if necessary.

3.6.1 Starting the 3270 Emulation Program

To start the 3270 emulation program in the background, enter the following command at the Solaris command prompt:

xtn3270 -b [-s[/
path/]stylefile] [-t [/
path/]convfile] [-h 
IDlist][-l 
host list]

The Motif program, xtn3270, cannot be run in the background; tn3270 must be used.

The option indicates that the program is to be run in the background. For more information about the other command-line options, see Starting the 3270 Emulation Program. If you use more than one option, you can specify them in any order.

When you start the 3270 emulation program in the background, all sessions suitable for running in the background (initially active printer sessions or initially active display sessions that have a session ID assigned to them) are automatically activated. If there is no initially active printer session or initially active display session that has a session ID assigned to it, the program terminates with an error message.

3.6.2 Stopping the 3270 Emulation Program

To stop the background 3270 process, use the tnstop3270 utility by typing tnstop3270. This will stop all copies of the 3270 emulation program that are running with your Solaris user ID.

The SNAP-IX TN3270 product responds with a message indicating the number of copies of the program it found and stopped.

Previous Page Contents Page Top of Page Next page