[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

162.0. "How to display a message on logout" by HGOVC::WONGKALOK () Wed Mar 04 1992 07:46

    As a cost-cutting and environment-friendly procedure, we have written a
    small command file which displays the word "Save Enery, turn off
    terminal after work", highlighted.
    
    It works fine as long as the user log out from DCL by typing "$LOGOUT". 
    However, for some captive users or advanced users, they just type LO in
    ALL-IN-1.  I have modified form DEFAULT so that it looks like this:
    
    ;;LO;;
    
    COMMAND SYS$MANAGER:LOGOUT\BYE
    
    The problem is that BYE clears the screen so that the message will stay
    in the screen for less than a second.
    
    Do anyone know a way to get around this?
    
    Regards,
    Adam.
T.RTitleUserPersonal
Name
DateLines
162.1At least 2 ways to do thisSIOG::T_REDMONDThoughts of an Idle MindWed Mar 04 1992 08:2611
    Change the ;;LO;; definition to
    
    WAIT Save Energy, turn off terminal after work \ BYE
    
    The message will be displayed and the user will have to hit return
    before BYE is called.
    
    Or call a script that includes a CLEAR, .BOX directive, followed by
    .WAIT and then BYE.
    
    Tony
162.2.PAUSEFAILTE::LAAHSTwo Cute Celts are better than oneWed Mar 04 1992 10:031
    Or .PAUSE n seconds before the BYE
162.3Great! I'll go for .PAUSEHGOVC::WONGKALOKThu Mar 05 1992 01:386
    You guys are great!  They are the solutions I've been looking for. 
    Both are good but I prefer the .PAUSE solution because it does not
    require the user to hit return.
    
    Thanks,
    Adam.