Tuesday, September 4, 2001 01:23 AM
Create the script chgpasswd on your linux machine and put it in the system path.
chpasswd < $1
With your java program you have to create a temp file with the following entries:
Now you can start your exec command:
String action = "chgpasswd " + tempFilePath;
Process process = runtime.exec( action );