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:52 +0200
- Message-id: <200304161544.52376.tinus@xxxxxxxxxxxx>
On Wednesday 16 April 2003 15:37, Stefan Hundhammer wrote:
> On Mittwoch, 16. April 2003 15:30, Linux Aremania wrote:
> > 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.
>
> I don't program Java, but from what I know you have only very limited
> access to the client system in Java applets - that would be a considerable
> security hole. Imagine everybody who can set up a web server could run
> commands remotely on your machine over the Internet! (That would be the
> consequence of what you wish to do).
>
> Bottom line: I doubt you can do that at all in a Java applet.
>
> Any true expert's opinion?
Oh, you're probably right about that. Exec class might not work in an
-applet-.
--
tinus
___________________________________________________
"Words are weightless here on earth
Because they're free." -- Josh Homme
> On Mittwoch, 16. April 2003 15:30, Linux Aremania wrote:
> > 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.
>
> I don't program Java, but from what I know you have only very limited
> access to the client system in Java applets - that would be a considerable
> security hole. Imagine everybody who can set up a web server could run
> commands remotely on your machine over the Internet! (That would be the
> consequence of what you wish to do).
>
> Bottom line: I doubt you can do that at all in a Java applet.
>
> Any true expert's opinion?
Oh, you're probably right about that. Exec class might not work in an
-applet-.
--
tinus
___________________________________________________
"Words are weightless here on earth
Because they're free." -- Josh Homme
| < Previous | Next > |