| Ticket UUID: | d879576438d4892909304013ed016ac195189ed6 | |||
| Title: | nettool ifconfig 'couldn't execute "ifconfig": no such file or directory' | |||
| Type: | Bug | Version: | 0.5 | |
| Submitter: | anonymous | Created on: | 2015-06-22 06:44:04 | |
| Subsystem: | nettool | Assigned To: | hypnotoad | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2016-04-26 14:19:03 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
OS: Debian 8 TCL: 8.6 TCLLIB: 1.17 On my debian systems I need to run '/sbin/ifconfig' since /sbin is not included in my path by default. Using nettool::hwid_list or nettool::ip_list (probably others) will error saying it can't find 'ifconfig'. I suspect that the command is being invoked without /sbin... | |||
| User Comments: |
anonymous (claiming to be Sergei Golovan) added on 2016-04-26 14:19:03:
The same applies to [exec arp -a] in modules/nettool/platform_unix.tcl. In Debian (at least) arp is located in /usr/sbin, which isn't in PATH for non-root. aku added on 2015-06-22 20:21:49: hypnotoad - Are you using auto_execok to find "ifconfig" ? If yes we may only have to temporarily extend PATH with a set of common locations for "ifconfig", including /sbin, and the auto_execok does the rest in searching the PATH. hypnotoad added on 2015-06-22 20:16:38: Guilty as charged. I will have to see if I can get the same information directly from /proc, or write a hunting algorithm to find the real path to ifconfig. --Hypnotoad | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki