Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!cs.tamu.edu From: skdutta@cs.tamu.edu (Saumen K Dutta) Newsgroups: comp.unix.internals Subject: rstat problem Message-ID: <12448@helios.TAMU.EDU> Date: 21 Feb 91 19:22:11 GMT Sender: usenet@helios.TAMU.EDU Organization: Computer Science Department, Texas A&M University Lines: 30 Sorry wiazrds! this is a simple programming problem for those who have worked with the remote statistics package of SUN(R) RPC. I want to collect some performance data from the remote workstation which runs the rstatd. The following program bounces every time when the rstat function gets executed. #include main() { int value; struct statstime *statp; value = havedisk("sparc10"); rstat("neuron", statp); } I compiled it with the rpcsvc library. Execution gives Segmentation fault and core dump. What I am doing wrong? please don't ask me to RTFM. Thanks in advance S.K. Dutta -- _ ||Internet: skdutta@cssun.tamu.edu ( /_ _ / --/-/- _ ||Bitnet : skd8107@tamvenus.bitnet __)_/(_____(_/_(_/_(_(__(_/_______ ||Uucp : uunet!cssun.tamu.edu!skdutta .. ||Yellnet: (409) 846-8803 Brought to you by Super Global Mega Corp .com