Code: Select all
/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4.2/3-3.4.2:1.0/ttyUSB0/tty/ttyUSB0/device
/dev/serial/by-path/platform-20980000.usb-usb-0:1.3.4.1:1.0-port0
Since forward slash is not supported in hostname, more strict checking at hostname level should fix it:
Code: Select all
diff -ur ../otmonitor.vfs.orig/otmonitor.tcl ./otmonitor.tcl
--- ../otmonitor.vfs.orig/otmonitor.tcl 2017-11-29 10:00:59.575541879 +0100
+++ ./otmonitor.tcl 2017-11-29 10:18:34.525891843 +0100
@@ -1537,7 +1537,7 @@
help
} elseif {[llength $arg] == 0} {
# Use default/saved connection settings
- } elseif {[regexp {^(.+):(.+)} $fn -> host port]} {
+ } elseif {[regexp {^([^/]+):(.+)} $fn -> host port]} {
set optcfg(connection,type) tcp
set optcfg(connection,host) $host
set optcfg(connection,port) $port
FYI: The source code file has otmonitor.orig included, is this intended on purpose?
Code: Select all
$ unzip -t ~/otmonitor.zip | grep orig
testing: otmonitor.vfs/otmonitor.tcl.orig OK