Mailinglist Archive: opensuse-programming (128 mails)

< Previous Next >
Re: [suse-programming-e] how to call linux command with java ?
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: 16 Apr 2003 19:44:28 +0200
  • Message-id: <1050515068.27124.18.camel@xxxxxxxxxxxxxxxxx>
On Wed, 2003-04-16 at 15:30, Linux Aremania wrote:
> hi list,
> I wanna make java application which call linux
> command, but I don't know how to call linux command.
> For example : I wanna display the output of "ps -ax"
> command in applet.

You can only do this in a trusted environment. If you're working in a
corporate intranet or similar you need to set the clients to trust
applets signed by you. Look at the documentation for java's security
manager. A google search turns up many hits. Here's one

http://www.securingjava.com/chapter-two/chapter-two-8.html



< Previous Next >
References