Softpanorama

Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
May the source be with you, but remember the KISS principle ;-)
Skepticism and critical thinking is not panacea, but can help to understand the world better

Teraterm log and replay functions

News Telnet Clients Recommended Links Teraterm Macros Reference for macrolanguage Invoking Teraterm from command line Highlights of enhancements in latest versions
Teraterm logging  CygTerm+ SSH Password-less SSH login TTSSH Using Pageant for authentication Usage of SCP with Teraterm
GNU Screen Exceed HostExplorer Putty Telnet protocol Teraterm connect command LogMeTT TTPMenu
Expect   Tips Admin Horror Stories Unix History Humor Etc

Log and replay functions

You can save the host data to the file if you use Tera Term logging function.

Log to the file

You can log characters received from the host. Execute the [File] Log command to start logging.

Do in the following commands:

  1. Do [File] Log command.
  2. "Tera Term: Log" dialog box will be shown.

    Input the saving file name to `File Name:'.
    All host data will be written to the file if you check `Binary' option.
    KANJI, CR and LF codes are converted to host character code, written to the file if you uncheck `Binary' option. However, the escape sequences are not written to the file.
    The host data will append the file if you check `Append' option.
    The host data will overwrite the file if you uncheck `Append' option.
     

  3. Push OK button, "Tera Term: Log" icon will be shown. And logging will start.
  4. Push Close or Pause button on the logging dialog box if you finish the logging or temporarily stop. Pause button will change into Start button if you push Pause button, the logging will restart.

To browse log files, which contain escape sequences, it is convenient to use the replay function of Tera Term. To replay a log file.

Replay the log file

Run Tera Term with command line in the following:

TTERMPRO /R=<log file name>

Tera Term analyzes the specified log file and understands the escape sequence datas. If so, the contents of log file will be displayed in Tera Term window as if the characters were received from the host. We call this function 'replay log'.

And also, you can also use 'Host:' on the [File] New connection command.

/R=<log file name>

Top Visited
Switchboard
Latest
Past week
Past month

NEWS CONTENTS

Old News ;-)

[Nov 20, 2014] Logging must be per line not per character

TeraTerm Support Forums

Post subject: Re: TeraTerm Logging must be per line not per character

Mar 07, 2012 5:26 am

Hi:
I have been using TeraTerm for last 3 years now. I am using version 4.69 currently.

I have to always log everything I do while testing the products I works on. So I turn on logging in TeraTerm.

I have one problem with TeraTerm Logging. When I mis type the command on my product and press backspace to cancel it, TeraTerm logs even that in the log file. This confuses me a lot when I go thru the logs.

I think TeraTerm must log only after user has pressed "Enter" key. This will have clean log file.

Is there anyway TeraTerm logging can be per line.. rather than per character?

Appreciate your help as this is very important issue for me.

Trevor

Guru

Joined: Wed Jul 26, 2006 4:47 am
Posts: 423
Location: UK

A lot of us certainly would not want the logging to change like this so if it were implemented it should be a configurable item.

logpause

Causes Tera Term to pause logging.

logpause

Received characters are discarded while logging is paused.

Example

prompt = '$'

cygconnect
wait prompt

; get a user name
getenv 'USERNAME' username
; get the date and time
gettime timestr "%Y%m%d-%H%M%S"

; add the user name and the timestamp to the log file name
sprintf2 filename 'd:\console_%s_%s.log' username timestr
;messagebox filename 'filename'

logopen filename 0 0
logwrite 'Log start'#13#10
sendln 'cal'
wait prompt
; Suspend logging
logpause
; The below command is not logging
sendln 'date'
wait prompt
; Resume logging
logstart
sendln 'uptime'
wait prompt
logwrite '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'#13#10
logclose

end

reading data from telnet session

TeraTerm Support Forums View topic -

yoursprp

Post subject: reading data from telnet session

Jun 04, 2014 12:45 pm

Hi,

My telnet server is having some text which scrolling continuously, how can i copy the text to my local computer. simply how can I read server data in telnet session?

Trevor

Guru

Joined: Wed Jul 26, 2006 4:47 am
Posts: 423
Location: UK

Turn logging on maybe?
Click "File" -> "Log"

yoursprp

I got some solution

recvln
while result=1
recvln
filewriteln file inputstr
endwhile

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

Top articles

Sites

logpause

Log and replay functions

Logging with TeraTerm Pro - Part 1.mp4 - YouTube

TeraTerm Support Forums View topic - reading data from telnet session



Etc

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright 1996-2018 by Dr. Nikolai Bezroukov. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) in the author free time and without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to make a contribution, supporting development of this site and speed up access. In case softpanorama.org is down you can use the at softpanorama.info

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: September, 12, 2017