Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can solve the problem of file scrolling in Linux? #186

Open
hz-kelpie opened this issue Feb 23, 2022 · 0 comments
Open

Can solve the problem of file scrolling in Linux? #186

hz-kelpie opened this issue Feb 23, 2022 · 0 comments

Comments

@hz-kelpie
Copy link

like the file'/root/.bash_history'

when my '/root/.bash_history' start roll

root@kelpie-btf:~# wc -l /root/.bash_history 

2000 /root/.bash_history

root@kelpie-btf:~# echo $HISTSIZE

1000

this util work abnormal ,but "tail -f /root/.bash_history " can still work

this is my config

t, err := tail.TailFile(p, tail.Config{
	Location: &tail.SeekInfo{
		Offset: 0,
		Whence: io.SeekEnd,
	},
	ReOpen:      true,
	Follow:      true,
	Poll:        true,
	MustExist:   false,
	Pipe:        false,
	MaxLineSize: 10000
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant