LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-22-2011, 04:39 AM   #1
urrohit
LQ Newbie
 
Registered: Mar 2010
Posts: 21

Rep: Reputation: 0
running rpc


hello everybody i was trying to run an rpc program . i was refering http://download.oracle.com/docs/cd/E...470/index.html

i have a doubt regarding how to run the program after the object files rprintmsg , msg_server have been generated

any help will be appreciated ,

thank u
 
Old 10-24-2011, 01:33 AM   #2
meenakshi.khurana
LQ Newbie
 
Registered: Mar 2010
Location: India
Distribution: Fedora,Redhat
Posts: 19

Rep: Reputation: 5
Its mentioned in link itself...

Once you have generated client stub and server stub and modified the code as per your requirements, you compile them to get client side and server side code.

On remote side, you just have to run following binary:

Code:
[test@remote ~]$ msg_server
and on local machine, from where you want to call remote function

Code:
[test@local ~]$ rprintmsg remote "Hello, there."
where remote is Ip of remote machine where you are running msg_server binary
 
1 members found this post helpful.
Old 11-03-2011, 07:24 AM   #3
urrohit
LQ Newbie
 
Registered: Mar 2010
Posts: 21

Original Poster
Rep: Reputation: 0
thank u meenakshi for the reply

but when i try to run the first command i get this error
Quote:
ohit@rohit:~/Desktop/rpc$ ./msg_server
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (MESSAGEPROG, PRINTMESSAGEVERS, udp).
i found that i should register the server first but how can i do that
 
Old 11-09-2011, 01:26 AM   #4
meenakshi.khurana
LQ Newbie
 
Registered: Mar 2010
Location: India
Distribution: Fedora,Redhat
Posts: 19

Rep: Reputation: 5
Run your binary as root user.

Or if you want to run as normal user, kill your existing session of rpcbind

Code:
service rpcbind stop
And Restart rpcbind with -i
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rpc.statd not running David the H. Linux - Networking 4 04-13-2012 02:37 AM
Suspicious process running under user rpc stellaconcepts Linux - Newbie 4 06-28-2011 05:19 AM
help me please!!-running c program using rpc in another systems ratheesh Linux - Networking 8 02-10-2009 05:33 AM
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 03:14 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 01:10 AM


All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration