Executing df -k command from java is not working for multiple execute
Hi,
I am executing df -k command from java using below code snippet.
Process proc = Runtime.getRuntime().exec("df -k " + path );
Its working fine when i execute only once. At the same if i execute for multiple times its failed. proc.exitValue is returning 1.
Could anyone please let me know if i need to do anything more here.
Regards,
Riyaz
|