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

ifconfig output format incompatible #1

Open
PhilAtkinPersonal opened this issue Aug 19, 2022 · 0 comments
Open

ifconfig output format incompatible #1

PhilAtkinPersonal opened this issue Aug 19, 2022 · 0 comments

Comments

@PhilAtkinPersonal
Copy link

Thanks for this project; looks like it may be useful for me.

I'm running Raspbian GNU/Linux 9 (stretch). The output format for ifconfig seems to be incompatible with your server Python code. To fix it, I had to change both lines that attempt to read the output to:

f = os.popen('ifconfig eth0 | grep "inet " | awk '{print $2}'')

(I'm not an expert on grep and cut and couldn't make those commands do the job. This worked for me but YMMV)

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