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

Mcping command #2

Closed
wants to merge 3 commits into from
Closed

Mcping command #2

wants to merge 3 commits into from

Conversation

urielsalis
Copy link
Contributor

Needs mcstatus installed(pip install mcstatus) and python

Assumes it will be run from same directory where the mcping command is(See Dockerfile)

Dockerfile Outdated Show resolved Hide resolved
server := args[0]

pythonCmd := exec.Command("python", "mcping.py", server)
out, err := pythonCmd.Output()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use CombinedOutput since this doesn't capture stderr

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script doesnt seem to use stderr, should I still use that?

@randomairborne
Copy link
Contributor

This PR is obsoleted by #23.

@LordRalex LordRalex closed this Jan 13, 2022
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

Successfully merging this pull request may close these issues.

3 participants