• Support
  • Articles
  • Resources
  • Products

How to get the size of a file / log ??

Moderator: boris

4 postsPage 1 of 1

Mokan
Newbie

Posts:
7
Joined: Mon Jun 19, 2017 2:14 am
by Mokan » Tue Jun 20, 2017 3:37 am
any commands to get the size of the log/file ??
show total number of lines in a log??
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Fri Jun 23, 2017 8:59 am
I don't think so but you could call something outside of Tera Term (e.g. a batch file) to do this and return to the macro. See exec command here: http://ttssh2.osdn.jp/manual/en/macro/command/exec.html.
e.g.

Code: Select all

  1. exec 'cmd /c c:\get-log-file-info.bat'
Mokan
Newbie

Posts:
7
Joined: Mon Jun 19, 2017 2:14 am
by Mokan » Fri Jun 30, 2017 5:58 am
Trevor wrote:I don't think so but you could call something outside of Tera Term (e.g. a batch file) to do this and return to the macro. See exec command here: http://ttssh2.osdn.jp/manual/en/macro/command/exec.html.
e.g.

Code: Select all

  1. exec 'cmd /c c:\get-log-file-info.bat'


Hi there thank you for the advice I'm sorry I'm keeping on asking questions is there any way in tera term to compare previously logged file and the current logged file?
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Fri Jun 30, 2017 2:57 pm
Hi,
It depends on what do you mean by compare. You can calculate the CRC of a file using macro. If two files have the same CRC then they will be the same. See http://ttssh2.osdn.jp/manual/en/macro/command/crc32.html.

If you mean visually compare, then outside of macro there are lots of tools for comparing text files e.g. winmerge or beyond compare.
Display posts from previous:
Sort by:

4 postsPage 1 of 1

Users browsing this forum: No registered users
cron