Grant,

Also, this is the code you are using:

http://www.informit.com/articles/article.aspx?p=21136&seqNum=7

When I tried it, I got:

[thud at ultralord ~/rpc]> ./ravg $RANDOM $RANDOM $RANDOM
RANDOM: Undefined variable.
[thud at ultralord ~/rpc]> ./ravg 10 11 12
value   = 0.000000e+00
value   = 0.000000e+00
10: RPC: Rpcbind failure - RPC: Timed out

Sweet, I actually made the same mistake you made!

[thud at ultralord ~/rpc]> ./ravg localhost 10 11 12
value   = 0.000000e+00
value   = 0.000000e+00
value   = 0.000000e+00
average = 0.000000e+00

Can you spot the difference?

I have no clue what the other args are or what $RANDOM is supposed to be.

I can get something more interesting:

[thud at ultralord ~/rpc]> ./ravg localhost 10.2 11.2 12.3
value   = 3.200000e+01
value   = 3.200000e+01
value   = 3.200000e+01
average = 3.200000e+01

But given the amount of work I had to do to get the program compiling, I'm okay 
with blaming the source.

Tom
-- 
This message posted from opensolaris.org

Reply via email to