aspose file tools
The moose likes Distributed Java and the fly likes Can I use RMI for remote system calls? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Can I use RMI for remote system calls?" Watch "Can I use RMI for remote system calls?" New topic
Author

Can I use RMI for remote system calls?

Brian Joseph
Ranch Hand

Joined: May 16, 2003
Posts: 160
I have a project where the application will run on both Windows and Solaris, however, the program is required to make some system calls only on the Unix side.
I was thinking of setting up an RMI server on a Unix machine and have my client application execute the system calls on the remote machine. My alternative would be to use RSH, which gets messy when you want your app to work on both Unix and the PC.
My question is about user permissions. The system calls must be executed as the user who launched the client application. Is it possible to switch users? Do I have to always launch the RMI server as root?
Thanks for any info or alternative ideas.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I use RMI for remote system calls?
 
Similar Threads
Call UNIX commands from JAVA
nx:URLyBird RMI registry and server startup
Best practices with starting registry
RMI Registry
on UI design :(