@@ -27,7 +27,7 @@ function troubleshoot()
27
27
error (" Failed to create LCM instance." )
28
28
end
29
29
30
- loopback_interface () = chomp (readstring (pipeline (` ifconfig` , ` grep -m 1 -i loopback` , ` cut -d : -f1` )))
30
+ loopback_interface () = chomp (read (pipeline (` ifconfig` , ` grep -m 1 -i loopback` , ` cut -d : -f1` ), String ))
31
31
32
32
function loopback_multicast_setup_advice (lo:: AbstractString )
33
33
if Sys. isapple ()
@@ -43,7 +43,7 @@ function loopback_multicast_setup_advice(lo::AbstractString)
43
43
end
44
44
45
45
function check_loopback_multicast (lo:: AbstractString )
46
- pass = if parse (readstring (pipeline (` ifconfig $lo ` , ` grep -c -i multicast` ))) != 0
46
+ pass = if Meta . parse (read (pipeline (` ifconfig $lo ` , ` grep -c -i multicast` ), String )) != 0
47
47
msg = """ Loopback interface $lo is not set to multicast.
48
48
The most probable cause for this is that you are not connected to the internet.
49
49
See https://lcm-proj.github.io/multicast_setup.html.
58
58
59
59
function check_multicast_routing (lo:: AbstractString )
60
60
routing_correct = if Sys. isapple ()
61
- chomp (readstring (pipeline (` route get 224.0.0.0 -netmask 240.0.0.0` , ` grep -m 1 -i interface` , ` cut -f2 -d :` , ` tr -d ' '` ))) == lo
61
+ chomp (read (pipeline (` route get 224.0.0.0 -netmask 240.0.0.0` , ` grep -m 1 -i interface` , ` cut -f2 -d :` , ` tr -d ' '` ), String )) == lo
62
62
elseif Sys. islinux ()
63
- chomp (readstring (pipeline (` ip route get 224.0.0.0` , ` grep -m 1 -i dev` , ` sed 's/.*dev\s *//g'` , ` cut -d ' ' -f1` ))) == lo
63
+ chomp (read (pipeline (` ip route get 224.0.0.0` , ` grep -m 1 -i dev` , ` sed 's/.*dev\s *//g'` , ` cut -d ' ' -f1` ), String )) == lo
64
64
else
65
65
error (" Sorry, I only know how to check multicast routing on Linux and macOS" )
66
66
end
0 commit comments