From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9d27428fe655409a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-08-19 21:52:52 PST Newsgroups: comp.sys.dec Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!usc!cs.utexas.edu!uunet!walter!isp.isp.bellcore.com!wws From: wws@isp.isp.bellcore.com (Wayne Scott) Subject: Re: Help on Future of VAX / VMS Message-ID: Sender: news@walter.bellcore.com Nntp-Posting-Host: isp.bellcore.com Reply-To: wws@cc.bellcore.com Organization: Bellcore X-Newsreader: mxrn 6.18-6 References: <> <31ljo9$k9u@sol.ccs.deakin.edu.au> Date: Tue, 16 Aug 1994 21:48:46 GMT One UNIX difference that has driven me nuts as I've moved from AIX to OSF/1 to SunOS is how the "ping" command works. On AIX and OSF/1 it does something like this: ============================================================ isp$ ping navaho PING navaho.cc.bellcore.com (128.96.96.216): 56 data bytes 64 bytes from 128.96.96.216: icmp_seq=0 ttl=252 time=66 ms 64 bytes from 128.96.96.216: icmp_seq=1 ttl=252 time=4 ms 64 bytes from 128.96.96.216: icmp_seq=2 ttl=252 time=4 ms 64 bytes from 128.96.96.216: icmp_seq=3 ttl=252 time=3 ms ^C ----navaho.cc.bellcore.com PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 3/19/66 ms isp$ echo $? 0 isp$ =========================================================== On AIX, it returns a 1 if it was not successful. On OSF/1 it ALWAYS returns 0. I have to do a popen() and scan the output for the % packet loss. On SunOS it tells me: [wws@microjet] ping 128.96.96.216 128.96.96.216 is alive [wws@microjet] It's a real nuisance trying to port "simple subroutines" that check the state of target systems. Wayne -- ---------------------------------------------- wws@cc.bellcore.com I'm just a soul whose intentions are good, Oh Lord, please don't let me be misunderstood.