A/UX 2.0: Input during Login Session


If I have something in my login file, like a question about setting the
variable term with the A/UX login, I can answer but I can't see what I am
typing. Is there a way to have a window with the question in it?


Since A/UX Finder 32-bit environment was selected as a default Login
Session, and the Login process (not part of CommandShell process) was
handled via the /mac/bin/mac32 process, all output messages (from .profile
or .login or .cshrc or .kshrc file) are disabled by the mac32 environment.
We know of this symptom.

There are, however, two ways that let you view and answer the question
asked in the shell script: the "Console Emulator" Session and "Initial
command" dialog box.

Console Emulator Session
------------------------
Use "Console Emulator" session.  This lets regular UNIX input or output
(usually specified in the .profile or .login or .cshrc or .kshrc file) be
viewed on the Console display.

1) Select "Console Emulator" as the Session Type.

2) Login into Console Emulator mode.  All the questions asked in the
  .profile or .login or .kshrc file will be displayed.

3) Issue the "mac32;screenrestore" or "mac24;screenrestore" command to
  go to Macintosh 32-bit or 24-bit environment.

  Or you may insert the "mac32; screenrestore" or "mac24;screenrestore"

  command at the end of your .profile or .login or .kshrc file to
  automatically go to MultiFinder environment.

4) Select "Logout" from MultiFinder environment to get back to the
  "Console Emulator" mode.

5) Issue the "exit" command from the "Console Emulator" mode to get back
  to the Login Dialog session.

The Initial Command
-------------------
Use the "Initial command" dialog box from the "Active Window Settings"
menu:

1) Within a CommandShell window, select the "Active Window
  Settings" item from the "Preferences" menu.

2) Put in any command you want to execute at log-in time into
  this window. For example:

  sh /.cmdshrc

  where /.cmdshrc is the shell script file to be executed as soon
  as you log into this window.

3) Click OK.

4) Select the "Save Preferences" item from the "File" menu to save
  the settings.  The .cmdshellprefs file will be created in the
  user's home directory.


Published Date: Feb 20, 2012