Mailinglist Archive: opensuse-programming (128 mails)
| < Previous | Next > |
Re: [suse-programming-e] how to call linux command with java ?
- From: Stefan Hundhammer <sh@xxxxxxx>
- Date: Wed, 16 Apr 2003 15:37:01 +0200
- Message-id: <200304161537.01878.sh@xxxxxxx>
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?
CU
--
Stefan Hundhammer <sh@xxxxxxx> Penguin by conviction.
YaST2 Development
SuSE Linux AG
Nuernberg, Germany
> 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?
CU
--
Stefan Hundhammer <sh@xxxxxxx> Penguin by conviction.
YaST2 Development
SuSE Linux AG
Nuernberg, Germany
| < Previous | Next > |