FHIR Chat · New linux updatePublisher script testing? · IG creation

Stream: IG creation

Topic: New linux updatePublisher script testing?


view this post on Zulip David Pyke (Jul 23 2020 at 15:16):

I've added all the script updating and other updates to the _updatePublisher.sh script. Anyone want to help test?

view this post on Zulip David Pyke (Jul 23 2020 at 15:16):

Linux and Mac testers wanted!

view this post on Zulip David Pyke (Jul 23 2020 at 16:23):

Anyone? Anyone? Beuller?

view this post on Zulip David Pyke (Jul 23 2020 at 17:34):

@Rob Hausam @Eric Haas ?

view this post on Zulip Rob Hausam (Jul 23 2020 at 19:01):

I'm interested in trying it out on the Mac (and I could on Linux, too).

view this post on Zulip David Pyke (Jul 23 2020 at 19:20):

Great! Thank you! I'll send it to your email

view this post on Zulip Rob Hausam (Jul 23 2020 at 22:35):

@David Pyke I just tried it on the Mac and this is what I'm getting:

RHausamMacbookPro:fhir-order-catalog rhausam$ sh _updatePublisher.sh
Checking internet connection
ping: invalid option -- 4
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize]
            [-g sweepminsize] [-h sweepincrsize] [-i wait]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern]
            [-S src_addr] [-s packetsize] [-t timeout][-W waittime]
            [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
Apple specific options (to be specified before mcast-group or host like all options)
            -b boundif           # bind the socket to the interface
            -k traffic_class     # set traffic class socket option
            -K net_service_type  # set traffic class socket options
            -apple-connect       # call connect(2) in the socket
            -apple-time          # display current time
Offline (or the terminology server is down), unable to update.  Exiting

view this post on Zulip David Pyke (Jul 23 2020 at 22:50):

I guess the mac version of ping doesn't support forcing things to IPv4. I'll delete that parameter, it's not really needed, anyway.

view this post on Zulip David Pyke (Jul 23 2020 at 22:54):

If you want, just delete that parameter and try again or I'll send you a revised one.

view this post on Zulip Rob Hausam (Jul 23 2020 at 23:10):

Looks like the Mac ping also doesn't support '-w'. After deleting both of those parameters it worked fine for updating the publisher and the scripts.

view this post on Zulip David Pyke (Jul 23 2020 at 23:16):

Great! Thank you! Mac uses -W. I wonder if I can find an easy way to determine if it's on a mac from within a script.

view this post on Zulip Rob Hausam (Jul 23 2020 at 23:18):

-W and -w aren't exactly the same, but maybe it won't matter with a single ping, anyway.

view this post on Zulip Rob Hausam (Jul 23 2020 at 23:20):

Not sure about detecting the Mac. Probably there is a way? But I haven't ever looked at that.

view this post on Zulip David Pyke (Jul 23 2020 at 23:31):

I think I'm just going to have it a basic ping -c1 and leave it at that. We don't need fancy stuff for an on-line test

view this post on Zulip Vassil Peytchev (Jul 23 2020 at 23:54):

Are you checking the exit code to determine success? If not, ping on IPv6, produces different output from IPv4, and the test will incorrectly fail.

view this post on Zulip David Pyke (Jul 24 2020 at 14:11):

Yes, we are.

view this post on Zulip Jose Costa Teixeira (Jul 24 2020 at 14:25):

The Windows script (still) uses ping because curl is not available out of the box. But on *nix machines perhaps you can use curl instead of ping to see if online

view this post on Zulip David Pyke (Jul 24 2020 at 14:28):

Ping works fine on linux/mac. If the exit code is other than 0, that means there's a problem and I exit the script.

view this post on Zulip Jose Costa Teixeira (Jul 24 2020 at 14:29):

Ok

view this post on Zulip Carl Anderson (Jul 24 2020 at 18:06):

Sorry I'm late to the party, but I'm on OSX and would be happy to help test this.


Last updated: Apr 12 2022 at 19:14 UTC