using applet to execute a command on the server

I want my applet to run a commend on a server. If I had a java program, I would have used

Runtime.getRuntime().exec (cmd1, envArr, file)

but I have an applet. so can I make it execute the command: "perl perlfile.pl" where perlfile.pl is on http://server/path/?

the applet need some data that this perlfile creates.

[340 byte] By [LeaTsabana] at [2007-11-27 10:13:06]
# 1

Send the command to a servlet and and get this to execute the command and return the response.

This sounds like a good starting point to create a massive security hole.

sabre150a at 2007-7-28 15:24:42 > top of Java-index,Java Essentials,New To Java...