From 9005a479fbc87b0d31a73011327c891372d912ec Mon Sep 17 00:00:00 2001
From: "Jason P. Leasure"
Date: Wed, 21 Apr 2021 08:50:35 -0400
Subject: [PATCH] add note to scriptLog documentation regarding print from
Python
---
.../Common/support/analyzeHeadlessREADME.html | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html b/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html
index dfbea0d5de..a209c98104 100644
--- a/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html
+++ b/Ghidra/RuntimeScripts/Common/support/analyzeHeadlessREADME.html
@@ -361,8 +361,13 @@ The Headless Analyzer uses the command-line parameters discussed below. See script.log
in the user directory, by default.
- NOTE: Only the built-in scripting print methods will print to the the script log file
- (print, println, printf, printerr).
+ Note: Only the built-in scripting print methods will print to the the
+ script log file (print,
+ println, printf,
+ printerr).
+
Also note that in Python scripts, print
+ writes to stdout. To write to the log from
+ Python, use println instead.
@@ -519,7 +524,7 @@ The Headless Analyzer uses the command-line parameters discussed below. See
- NOTE: In some cases, password entry will be echoed to the console (a warning will show at
+ Note: In some cases, password entry will be echoed to the console (a warning will show at
password prompt).
@@ -881,7 +886,7 @@ public class Script1 extends GhidraScript {
-NOTE: If script-specific arguments have been passed into the
+Note: If script-specific arguments have been passed into the
script, the askXxx() methods will consume values found in the argument array
rather than a .properties file. The first askXxx()
method will use the first value in the array, the second askXxx() method will
@@ -946,7 +951,7 @@ programs in the current session, unless changed).
-NOTE: To check whether analysis is currently enabled, use the following method:
+Note: To check whether analysis is currently enabled, use the following method:
boolean analysisEnabled = isHeadlessAnalysisEnabled();