[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

481.0. "log term session?" by NZOV03::PARKINSON (Hrothgar) Tue May 26 1987 10:08

    Does anyone know how you can log a terminal session to a file?
    I can't use set host/log 0 because the machine in question does
    not have decnet (microvax, they don't even have a crippled NETACP).
    
    I recall something about using 'virtual terminals' to do this in
    the V4 update course, but I haven't been able to locate it in the
    manuals since.
    
    Thanks for any help
    Roger
T.RTitleUserPersonal
Name
DateLines
481.1'crippled' DECnet is good enoughCSC32::M_AMBERNo disassembleTue May 26 1987 16:5112
    Although I've never actually tried this on a microVAX,
    it seems to me that you should be able to use the TAILOR facility
    to add the DECnet stuff off the distribution tape.  Then, even if
    you don't have the DECnet key, you can still start decnet and
    talk to yourself.  The key only stops you from having lines and
    circuits.
    
    In fact, I believe this is intended.  This allows you to test and
    develop network things with actually having a true network.  Anyway,
    once you do all these things, then you can do the SET HOST 0/LOG
    thing.
  
481.2DTM will allow recording terminal sessionVIDEO::OSMANtype video::user$7:[osman]eric.sixTue May 26 1987 17:4612
Well, if you use conference CLT::DTM to install DTM on your system, you
can get a recording of your terminal session with:

	$ dtm
	dtm> create test/record sex yes

You'll have to first define logical name DTM$LIB to point to a subdirectory
that you initialize as a DTM library, but I forget what commands you
need to do that.  Perhaps another DTM user can tell us what the initialize
command is ?

/Eric
481.3@tt:/out=filenameCOOKIE::KRANTZTue May 26 1987 20:291
    
481.4umm...FROST::HARRIMANentente, enunciationTue May 26 1987 20:384
    re: .-1 ...only gives sys$output no sys$error?
    re: .-2 ...he's not on the e-net? (dtm is a good idea though)
    
    /pjh
481.5thanksNZOV03::PARKINSONHrothgarThu May 28 1987 09:0317
    RE .1 No, DECNET is not distrubuted at all to microvax systems
    unless they buy it. I know it would work as you describe if it was
    there.
    
    RE .2 DTM? I don't know it. But this is a customer machine. I can't
    just put net kits on there. Sounds interesting, though.
    
    RE .3 Does not show output to terminal - only to log file. We need
    both.
    
    I dug out some old V4 update course notes and found the connect
    disconnect commands, which are nothing to do with logging to a file,
    my mistake there. Maybe it is not possible in this situation. Thanks
    for the help, though.
    
    Roger
    
481.6FROST::HARRIMANexclamations...exaggerationsThu May 28 1987 20:5111
    
    Here's a completely unsupported idea. Back a couple of topics we
    discussed a "watch" program which would simultaneously output text
    (and optionally input text) to another process' terminal.
    
    Without going into detail about the technology it uses to do what
    it does, couldn't something along those lines be adapted to log
    to a file instead of another terminal?
    
    just another suggestion
    
481.7<HACK>WKRP::LENNIGDave, SWS, @CYO CincinnatiFri May 29 1987 01:463
    Tie two terminal ports together with a null modem cable, then
    
    	$SET HOST/DTE/LOG ...
481.8SMOPYALI::LASTOVICAStuck in a Lather-Rinse-Repeat loopFri May 29 1987 03:005
    Here's a good hack (used by a number of internal products):
    	Patch the UCB of the terminal being monitored to point the output
    routine to one of your choice.  Have the routine loaded into nonpaged
    pool and redirect the output to a mailbox (or somewhere) and then
    back to the original I/O routine in the driver...
481.9Try looking into SCRIPTP instead of SET HOSTDSSDEV::MUNYANSteve MunyanFri May 29 1987 12:5714
    
    Re: .7
    
    If your going to tie two terminal ports together, I suggest you look
    into the SCRIPTP tool in the toolshed.  Before the days of DTM, the FMS
    and EDT groups wrote this tool to perform their regression testing.
    
    SCRIPTP allows the user to specify input script files, output logging
    files, has the ability to record a new script file from the terminal,
    etc...
    
    Steve
    An X SCRIPTP user
    
481.10Logging tty sessionISTG::BHAVNANIRavi BhavnaniSun Jul 05 1987 05:4114
	I believe the utility PHOTO would allow you to log your term
	session to a file - both sys$error and sys$output.  If I remember
	correctly, all you do is something like

	$ photo [{start | stop}] [log filename]

	The exact syntax <ESC>s me, but it's soemthing like that.  Oh yes,
	PHOTO's sitting somewhere on the net.  Probably in the Toolshed.
	Sorry I'm being so vague, but I *have* used this utility and it's
	a real asset.  Reminds me of the "good old" Multics' lts,sts.

	Hope this is of some help.

	/ravi