diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 9841dc6930..c34bbaf254 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -553,6 +553,26 @@ public class Case { } } + /** + * Get absolute module output directory path where modules should save their permanent data + * The directory is a subdirectory of this case dir. + * @return absolute path to the module output dir + */ + public String getModulesOutputDirectoryPath() { + return this.getCaseDirectory() + File.separator + getModulesOutputDirectory(); + } + + + /** + * Get relative (with respect to case dir) + * module output directory path where modules should save their permanent data + * The directory is a subdirectory of this case dir. + * @return relative path to the module output dir + */ + public String getModulesOutputDirectory() { + return "ModuleOutput"; + } + /** * get the PropertyChangeSupport of this class * @return PropertyChangeSupport diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java index 99c696357d..d658f71066 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java @@ -146,6 +146,12 @@ public final class JavaSystemCaller { logger.log(Level.INFO, "Executing " + aShell.getShellCommand() + " " + command); proc = rt.exec(aShell.getShellCommand() + " " + command); + try { + //give time to fully start the process + Thread.sleep(2000); + } catch (InterruptedException ex) { + logger.log(Level.WARNING, "Pause interrupted"); + } // any error message? final JavaSystemCaller.StreamGobbler errorGobbler = new JavaSystemCaller.StreamGobbler(proc.getErrorStream(), "ERROR");