<opinion confidencelevel="pretty-sure">I don't believe there's a direct way of doing that in Java. </opinion>
But, inspite of the fact that it flys in the face of platform independence and security, you could write a class with native methods that could do that. Just don't tell anyone.
-Peter
On Monday, March 3, 2003 11:55 AM, Stephen Daukas <stephen(a)daukas.com> wrote:
>
>Hey guys!
>
>I have a really short Java question for you... How does one make a
>system call from Java? I want to be able to run a Linux command as I
>would in C, e.g., System("command");
>
>The idea behind this is that I'm writing an example Java program to
>install an application, for example Postfix, that I may want to use as
>an example for Students...
>
>Later!
>Steve
--
Peter Gutowski - peter(a)linuxchamps.com - 413-531-0123
Carpenter's Axiom: Measure twice, cut once.