JET 3270 Documentation
JET 3270 2.4E     Preferences
 
Table of Contents
Previous
Next

Example logon script

Here is an example of a simple logon script.

The example requires that your workstation is connected to the Internet so that JET 3270 can connect to the Library of Congress TN3270 server at locis.loc.gov.

  • Using a text editor, create a file named "scriptloc.txt" with the following contents:
    # Script to search for "platypus" in the LOC catalogue
    waitfor "Choice:"
    send "1[enter]"
    send "3[enter]"
    send "b platypus[enter]"
  • Start JET 3270 from the original Shortcut.htm file
  • If JET 3270 is running within the browser window (i.e. a JET 3270 window did not appear):
  • If the Connect dialog box appears:
    • Click Cancel on the Connect dialog box.
  • If JET 3270 is attempting to or has connected to a host:
    • Select Disconnect from the Connection menu.
  • Select Connect... from the Conneciton menu.
    The Connect dialog box appears.
  • Enter locis.loc.gov for Hostname.
  • Enter 23 for Port.
  • Click OK.
    The Connect dialog box disappears. JET 3270 attempts to connect to locis.loc.gov.
  • Select Disconnect from the Connection menu.
    JET 3270 disconnects.
  • Select Edit Preference Sets... from the Preference menu.
    The Edit Preference Sets dialog box appears with the preference set associated with locis.loc.gov selected.
  • Click Change...
    The Change Preference Set window appears.
  • Select the Telnet Options card.
  • Select This Page for Logon Preferences from.
  • Click Choose File...
    The Logon Script File dialog box appears.
  • Navigate to and select the scriptloc.txt file.
  • Click Open or OK.
    The Logon Script File dialog box disappears. The Logon Script URL textfield has the file: URL for scriptloc.txt.
  • Click OK
    The Change Preference Set window disappears.
  • Select Reconnect from the Conneciton menu.
    JET 3270 connects to the Library of Congress host. The Stop Script toolbar button is enabled. JET 3270 navigates to the book search prompt and searches for "platypus". The Stop Script toolbar button is disabled.

To exit the Library of Congress host:

  • Type "exit", press Enter.
  • Press Enter.
  • Type "12", press Enter.
  • Type "12", press Enter.
Table of Contents | Previous | Next
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.