Re: ./EuGTK/GtkEngine.e to Irv
- Posted by jimcbrown (admin) Apr 21, 2015
- 2004 views
I was a bit taken aback to see an error about ifconfig when running wee. You may run ifconfig as a normal user. You just cannot do any changes (or damage) by running ifconfig as a normal user. It is used in EuGTK to determine whether you have an internet connection.
There's better ways to do that. Use std/socket.e and create a socket to TCP port 80 to www.whitehouse.gov (for example).
As a normal user, it must be called as /sbin/ifconfig rather than just ifconfig.
I quibble with the "must" piece. I regularly add /sbin/ to my PATH in /.bash_profile just so I don't have to call it as /sbin/ifconfig ...
Does Irv run his GTK test programs as root?
Or he does what I do.
Anyway you guys kind of missed the point of the original post. It is kind of obvious you shouldn't be editing stuff as root if they are not in /etc.
Huh? What does /etc have to do with the original post?