I am trying to execute command using exec method
proc3=Runtime.getRuntime().exec("umount "+m);
Where m is variable having directory location like /mnt, /media When i execute the command in command prompt it will work as expected, but with java exec method it's not working giving exit status 2. What may be the reason ?