dthello Does Not Run Long Enough


Problem

At times, if you have long messages for the dthello option, you cannot read the entire message before CDE launches.


Solution

In order to lengthen the dthello time, accomplish the following:

  1. Locate the line that calls dthello and reads:

    $DTHELLO $DTHELLO_ARGS &

  2. Add the following line directly below it:

    sleep xx

    NOTE: xx represents the number of additional seconds you can add to allow yourself time to read the /etc/motd. You may also need to change the font that is used to display the text so that all of your message will fit on the screen.

  3. Save the changes to the file.

  4. In order for the desktop to find your changes, you also need to modify the Xconfig file to point to your modified version of the Xsession file. To do this:

    NOTE: If the /etc/dt/config/Xconfig file does not exist, copy the /usr/dt/config/Xconfig file into the /etc/dt/config directory using the following commands.

  5. mkdir /etc/config

  6. cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig

    The command in Step 6 makes the /etc/dt/config and is only needed if this directory has not been previously created.

  7. Add or change the DtLogin*session line in the /etc/dt/config/Xconfig file to point to /etc/dt/Xsession.

    For example:

    DtLogin*session:  /etc/dt/Xsession
    
  8. Save the file.

  9. Force the Login Manager to re-read the Xconfig file by issuing the following command:

  10. kill -HUP <pid>

    NOTE: <pid> is the process ID of the Login Manager. To obtain the pid, enter cat /var/dt/Xpid The number returned from this command is the pid that should be specified in the kill command.

  11. The next time the motd screen is displayed, the changes will be visible.



[ Doc Ref: 97691206625504     Publish Date: Nov. 09, 2001]