[ https://issues.apache.org/jira/browse/IO-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471517 ]
Henri Yandell commented on IO-111: ---------------------------------- I think it should be expected in the path, so my vote here is wontfix. > FileSystemUtils.freeDiskSpaceUnix does not work if df is not in the shell path > ------------------------------------------------------------------------------ > > Key: IO-111 > URL: https://issues.apache.org/jira/browse/IO-111 > Project: Commons IO > Issue Type: Bug > Affects Versions: 1.2, 1.3 > Environment: Solaris > Reporter: Xavier Soudan > Priority: Minor > > if the df command is not in the path, the method freeSpaceUnix throws an > exception: > java.io.IOException: df: not found > at java.lang.UNIXProcess.forkAndExec(Native Method) > at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) > at java.lang.ProcessImpl.start(ProcessImpl.java:65) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) > at java.lang.Runtime.exec(Runtime.java:591) > at java.lang.Runtime.exec(Runtime.java:464) > at > org.apache.commons.io.FileSystemUtils.openProcessStream(FileSystemUtils.java:357) > at > org.apache.commons.io.FileSystemUtils.freeSpaceUnix(FileSystemUtils.java:298) > Rather than expecting df is in the path, it should be searched in the > following standard location: > /usr/bin/df > /usr/sbin/df > /bin/df > /sbin/df > /usr/ucb/df > /usr/xpg4/bin/df -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]