No subject


Sat Nov 12 19:29:10 PST 2005


exec(String[] cmdarray) => Executes the specified command and arguments in a
separate process.

An example to try might be:
String myCmd[] = { "foo", "param1" };
Runtime.exec(myCmd);

Regards,
David


> ----- Mensagem original -----
> De:		Chandrakant Yemparala [SMTP:ychandra at cse.unl.edu]
> Enviada em:		Sexta-feira, 17 de Setembro de 1999 16:19
> Para:		advanced-java at xcf.berkeley.edu
> Assunto:		Runtime & exec
> 
> Hi,
> I have a problem with the process.exec() command. I invoked a script named
> runtr as process.exec("process"). This works fine, but I want to pass an
> argument to the script in the exec.(like exec("process s"), where s is a
> string containing the argument. But this gives error). Any ideas?
> 
> Thanks
> Chandra
> 
> 
> 
> 
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
> To get help, mail advanced-java-help at xcf.berkeley.edu

---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu



More information about the Advanced-java mailing list