From da3928f42ac4f092d999e6200b876aeb195296ca Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 12 Feb 2013 10:59:21 -0500 Subject: [PATCH 1/2] restore the pause when forking process, add log msg if interrupted --- .../sleuthkit/autopsy/recentactivity/JavaSystemCaller.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"); From 1741c74349c5ddf1e85077f0e022aa3cf50f5f5f Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 12 Feb 2013 12:06:38 -0500 Subject: [PATCH 2/2] add API to case to get modules output dir --- .../sleuthkit/autopsy/casemodule/Case.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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