TOT: How to examine end of 10GB log file on a Windows PC?

J

Java Jive

As per title ...

I have an improvement I wish to make to a program, not one that I've
written, but I did write most of the 680x0 emulator that now runs it
on current hardware. I hope to discover a suitable execution address
in the Program Counter to have the emulator kick in to update the
display before continuing execution of the program. I already have a
similar such 'fix' working very well, except that it doesn't get
called as the program ends, so part of the final display is annoyingly
out of date.

The only way I can work out what needs to be done is to see in detail
what happens when the prog comes to an end. Thus, I have had the
emulator list the entire running of the prog from start to finish,
resulting in a log file of a mere 10GB! Naturally, I had expected it
to be big, but not as vast as it has turned out in reality.

Any suggestions as to how I can split this up into chunks, so that I
can load the tail end of it into an editor to see what is going on?
--
=========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html
 
P

polygonum

You did not say which version of windows, however if its 7 or later,
then open the power shell, and do:

Get-Content logfilename.txt -Tail 50

to display the last 50 lines.

To maintain a live watch on the end of a file use the -Wait switch (Ctrl
+ C will exit)

If using XP then there are plenty of tail type commands you can install
like:

http://sourceforge.net/projects/tailforwin32/

If you are more a *nix kind of guy, then consider installing cygwin,
which will add all the normal *nix style commands and command line tools.
My problem has always been doing this without installing anything - and
on everything from W2K (including servers) right up to date. When
connecting to other people's computers it is often not appreciated when
you install things!
 
M

Mike Barnes

Java Jive said:
As per title ...

I have an improvement I wish to make to a program, not one that I've
written, but I did write most of the 680x0 emulator that now runs it
on current hardware. I hope to discover a suitable execution address
in the Program Counter to have the emulator kick in to update the
display before continuing execution of the program. I already have a
similar such 'fix' working very well, except that it doesn't get
called as the program ends, so part of the final display is annoyingly
out of date.

The only way I can work out what needs to be done is to see in detail
what happens when the prog comes to an end. Thus, I have had the
emulator list the entire running of the prog from start to finish,
resulting in a log file of a mere 10GB! Naturally, I had expected it
to be big, but not as vast as it has turned out in reality.

Any suggestions as to how I can split this up into chunks, so that I
can load the tail end of it into an editor to see what is going on?
Baretail works for me: http://www.baremetalsoft.com/baretail/ (Windows)
 
T

The Natural Philosopher

My problem has always been doing this without installing anything -
and on everything from W2K (including servers) right up to date. When
connecting to other people's computers it is often not appreciated
when you install things!
then put your programs on a CD-ROM or USB stick. No need to install them
 
J

Java Jive

Thanks for this, though I'm not sure why I didn't think of it for
myself - bit short on sleep I suppose, as these days I seem
semi-permanently to be.

Booted from a Linux Live CD and used 'tail' to capture the last
100,000 lines. I've found what I was looking for, and the prog now
has a decent final status display.

Or dual boot into Linux and use the same.
--
=========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html
 
J

Java Jive

Thanks but ...

You did not say which version of windows, however if its 7 or later,
then open the power shell, and do:

Get-Content logfilename.txt -Tail 50
On my W7, Get-Content didn't have a -tail option.
I couldn't get this to work properly.
--
=========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html
 
S

Steve Firth

Java Jive said:
Thanks for this, though I'm not sure why I didn't think of it for
myself
Because you're a moronic top-posting twat.

HTH
 
S

Steve Firth

Java Jive said:
Who rattled the cage of the group's resident juvenile wanker ...

Me, just now.

BTW, ellipsis is not the same as a question mark.

How's that Google Groups kill file working out for you, you brainless twat?
Ready to admit that you were lying through your teeth yet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
129,102
Messages
1,266,947
Members
10,787
Latest member
jagga009

Latest Threads

Top