On Fri, 8 Oct 1999, [iso-8859-1] Rogério Garibalde Miranda wrote:

> How can I make a call to an API of the linux using java? I want to add an
> user to the linux, for example. thank you.
> 

I think the following method may be useful:

 public int execSystemCommand(String cmdLine)
   throws InterruptedException {
   Process p = Runtime.getRuntime().exec(cmdLine);
   return p.waitFor(); // by convention '0' means normal termination
 }


Good luck.


--Antonio
  DCA/FEEC/UNICAMP, Brazil.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to