On Thu, Nov 26, 1998 at 04:58:36PM +0800, optima wrote:
> hellow friend
> I can use the runtime object to exec() a "ls".
> But I can't invoke the command "passwd "
> because it need to comfirm the passwd .how can I do
> thank my linux fan.
Hello, not sure if that will be of any help, but you could try to fetch
the input and outputstream of the process and play with it,
as in parse the output to insert the password as the right time.
thus confirming it when it asks so.
Or you may want to look into native methods if there is a native langage
method for passwd ?
Mail back if you find better (or if that worked) please,
Stef.