Getting the last part of a file...???

Advertisement

adri
Joined:
Posts:
2
Location:
UK

Getting the last part of a file...???

Hi

Is it possible to only fetch the last say 200 lines of a file? I'm wanting to fetch the last couple of days worth of an Apache access log to keep an eye on what's happening. If I fetch the whole thing every time though I'll end up using up my allowed bandwidth!

TIA
Adri

Reply with quote

Advertisement

adri
Joined:
Posts:
2
Location:
UK

Just tried using
tail --lines 2000 "!"
as a custom command but it then told me the current SFTP didn't support the command and needed to open a separate shell. When I said yes open a new shell I get 'invalid access to memory'

If anyone can help it'd be appreciated.

Cheers
Adri

Reply with quote

Advertisement

You can post new topics in this forum