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

could not start tail command - windows #18

Closed
msenturk opened this issue Apr 24, 2019 · 2 comments
Closed

could not start tail command - windows #18

msenturk opened this issue Apr 24, 2019 · 2 comments
Assignees
Labels
bug Confirmed to be a bug please try it windows Windows-specific

Comments

@msenturk
Copy link

termshark looks for the tail.exe at "c:\cygwin64\bin\tail.exe" via hardcoded way.

image

@gcla
Copy link
Owner

gcla commented Apr 26, 2019

Yes, you are right :-/ It is possible to change the tail command that termshark uses - in the UserGuide at the link below, search for "tail-command"

https://github.com/gcla/termshark/blob/master/docs/UserGuide.md

I'm not sure what would be a good candidate outside of the cygwin one - when I looked into this, it seemed that there was little else that was up to date and not buggy. Some discussion here:

https://stackoverflow.com/questions/187587/a-windows-equivalent-of-the-unix-tail-command

If you find an alternative on windows, or have one in mind, please do let me know.

@gcla gcla self-assigned this May 5, 2019
@gcla
Copy link
Owner

gcla commented May 5, 2019

Hi - would you be willing to try an experimental termshark that removes the dependency on cygwin? It's in branch golangtail. Something like this should work for installing it (I ran this in a temporary new user env via adduser on Linux with go 1.12.1)

$ export GO111MODULE=on
$ git clone https://github.com/gcla/termshark
$ cd termshark
$ git checkout golangtail
$ GOOS=windows GOARCH=amd64 go install ./...

then termshark.exe will be in ~/go/bin/windows_amd64/

To use the new built-in default tail, make sure that main.tail-command isn't configured in termshark.toml - on Windows that's in <USERPROFILE>\AppData\Roaming\termshark.toml

Thanks!

@pocc pocc added bug Confirmed to be a bug windows Windows-specific labels May 9, 2019
@gcla gcla closed this as completed in 2ff3048 Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed to be a bug please try it windows Windows-specific
Projects
None yet
Development

No branches or pull requests

3 participants