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

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

599.0. "Suppressing LOGOUT message" by BPOV09::GRAHAM (Dr. John) Mon Nov 16 1987 15:54

    I was wondering if there was any way to suppress (via DCL command
    or terminal interaction) then LOGOUT message that is displayed when
    an interactive session is terminated.
    
    					John G.
    
T.RTitleUserPersonal
Name
DateLines
599.1STOP/ID=0 works.CADSYS::PRENTICEEd 225-4061 HLO2-2/G13 (E13)Mon Nov 16 1987 16:261
    Sure. Just type "STOP/ID=0" instead of "LOGOUT".
599.2BPOV09::GRAHAMDr. JohnMon Nov 16 1987 18:583
    Thanks.  It does just what I want.
    
    				JG
599.3Not the same???BEES::SCHLIESMANNI'd rather be driving a TitleistTue Nov 17 1987 16:184
Several years back, I wanted to do the same thing, and remember STOP/ID=0
as not being the greatest alternative.  STOP/ID=0 is not as "graceful" as
actually logging out.  I believe that STOP/ID=0 does not perform some of
the cleanup that LOGOUT performs, and simply calls DELPRC.
599.4$ STOP /ID=0 does most things needed.PASTIS::MONAHANI am not a free number, I am a telephone boxWed Nov 18 1987 08:3511
    If you have arrived at the DCL prompt by interrupting a running
    programme with ^Y, then you might want to allow user mode exit handlers
    to be run. Also it would be tidier to close files that DCL has open
    for write access.
    
    $ EXIT           !run user mode exit handlers (if any)
    $ CLOSE FILE1    !that was explicitly opened by DCL
    $ STOP /ID=0

    If this is part of a command procedure you will not want the EXIT
    command, of course.
599.5how do I make my .COM do EXIT without EXIT ?VIDEO::OSMANtype video::user$7:[osman]eric.sixWed Nov 18 1987 17:4421
>    $ EXIT           !run user mode exit handlers (if any)
>    $ CLOSE FILE1    !that was explicitly opened by DCL
>    $ STOP /ID=0
>
>    If this is part of a command procedure you will not want the EXIT
>    command, of course.


Interesting issue here !  If "EXIT" when typed at top level means to run
user mode exit handlers, and "EXIT" when typed at lower "@" levels means
to run user mode exit handlers and also return to previous level, what
command in a lower "@" level means ONLY run user mode exit handlers but
DON'T also return to previous level ?

I can think of implicit methods.  For instance, if the "@" level merely
runs another program, the previous program's exit handlers will be
run, but what if the "@" wants to do it without having to run another
program.  Other hacks might work too, like "@nl:", but it still seems
like a hack.

/Eric
599.6Exit without exiting?CADSYS::PRENTICEEd 225-4061 HLO2-2/G13 (E13)Wed Nov 18 1987 19:317
> Interesting issue here !  If "EXIT" when typed at top level means to run
> user mode exit handlers, and "EXIT" when typed at lower "@" levels means
> to run user mode exit handlers and also return to previous level, what
> command in a lower "@" level means ONLY run user mode exit handlers but
> DON'T also return to previous level ?

Doesn't "STOP" do what you're asking?   /egp
599.7WINERY::THOMASThe Code WarriorWed Nov 18 1987 23:083
    $ COPY _NL: _NL:
    
    Just force the executation of another image.
599.8STOP is pretty severe!CADSYS::SLATERKen Slater, SEG-CADsystemsThu Nov 19 1987 01:263
    Re: .6
	No, Ed, STOP does not do what he wants. STOP does not run exit
	handlers. Check out your DCL dictionary...Ken
599.9having to run another image to exit this one is a crVIDEO::OSMANtype video::user$7:[osman]eric.sixThu Nov 19 1987 18:428
re:   copy nl: nl:

I already mentioned that yes, I could run another image, but that's a crock.
I want to exit this image but NOT run another.  (For instance, my .COM
is about to do some non-image execution, such as OPEN/READ/WRITE/CLOSE
or a bunch of F$ stuff)

/Eric
599.10VIDEO::LEICHTERJJerry LeichterTue Nov 24 1987 01:327
You don't have to do ANYTHING to force an image exit - when commands are coming
from a command file, the next DCL command executed, WHATEVER it is, will cause
user-mode run-down.

Why do you think you can't do a CONTINUE from a CTRL/Y handler?

							-- Jerry
599.11Suppressing LOGOUT messageFOO::BHAVNANIIt's not a bug - it's a feature!Wed Dec 02 1987 15:473
	Getting back to the original question, I've been happily doing
	$ EOJ for years.
	/ravi