Mailinglist Archive: opensuse-programming (128 mails)

< Previous Next >
Re: [suse-programming-e] how to call linux command with java ?
  • From: Martijn Houtman <tinus@xxxxxxxxxxxx>
  • Date: Wed, 16 Apr 2003 15:44:01 +0200
  • Message-id: <200304161541.07897.tinus@xxxxxxxxxxxx>
On Wednesday 16 April 2003 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 are probably looking for something like this:
http://mindprod.com/jglossexec.html (windows-based, but works for Linux as
well, I think).

I don't really think it's a great idea to pass system-commands from within a
system-independant language like java, but hey, it works.

--
tinus

___________________________________________________
"Words are weightless here on earth
Because they're free." -- Josh Homme



< Previous Next >
References