dcsimg
passwd UNIX command from java. how use Runtime.exec("passwd");
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   darek_gbur
Posted On:   Saturday, March 5, 2005 10:32 AM

			
how can i use passwd from java?? if i use Runtime.exec("passwd") i get only Process.getErrorStream "New UNIX paswword", if i want get something to getInputSteram my program dosn't work. sorry for my english:)

Re: passwd UNIX command from java. how use Runtime.exec("passwd");

Posted By:   Anonymous  
Posted On:   Tuesday, March 29, 2005 09:32 PM

use this syntax..
Process p=Runtime.getRuntime().exec("passwd user --stdin < pas")
where pas is file that contains ur password..
using this u can set password for any user from gui..
About | Sitemap | Contact